Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

How to handle Google Custom Search API limitation of more than 32 keywords per request in Java?

I'm working with the Google Custom Search API in a Java Spring Boot application and facing a limitation where the API only supports up to 32 keywords per query. However, my application needs to ...
Arun Mozhi's user avatar
1 vote
1 answer
43 views

How to get only directory from URI

A URL with parameters is passed to the URI variable. The protocol and domain may be https://example.com or localhost:xxxxxx. In either case, the subsequent directory and file names are the same. In ...
yolo's user avatar
  • 657
0 votes
0 answers
28 views

How to list the URI of an installed Windows universal app?

How can I get the URI of an installed Windows universal app (e.g.: ms-photos:)? Get-AppxPackage -AllUsers *photos* for example will list something like this: Name : Microsoft....
hexaae's user avatar
  • 160
-1 votes
0 answers
18 views

"android://" URI meaning

I've been sorting out my NordPass passwords in my browser. It's a password manager that has an app which will use passwords in various apps as well (so I can use it to sign into my Facebook app ...
Geordan Nicholson's user avatar
0 votes
1 answer
114 views

'pg' package TypeError: Cannot read properties of undefined (reading 'then')

When I try to run then function on it, it will return this error TypeError: Cannot read properties of undefined (reading 'then') at Object.\<anonymous\> (/app/src/index.js:52:2) at Module.\...
mohamed moniem's user avatar
0 votes
0 answers
18 views

Using the data uri of a react-camera-pro image [duplicate]

I used the react-camera-pro to capture an image and have the data uri (in this format: data:image/jpeg;base64,/9j/4AAQSkZ....) stored in Firebase. Is there a way to use this to actually see the image ...
chaej's user avatar
  • 1
1 vote
1 answer
46 views

Save File Selected from ACTION_OPEN_DOCUMENT to Variable or Create Copy to Local Storage

The Objective: Have the user select a pdf document, stored in Environment.DIRECTORY_DOWNLOADS, to merge with another programmatically created pdf. What I've Tried: Saving the uri returned from ...
Whitt's user avatar
  • 57
0 votes
1 answer
23 views

How to Save URI returned from ACTION_CREATE_DOCUMENT and Use In Different Activity/Fragment

How do I save the URI returned from Intent.ACTION_CREATE_DOCUMENT and then use this URI to be used in a different Activity or Fragment? Since startActivityForResult is deprecated, I'm incredibly lost. ...
Whitt's user avatar
  • 57
0 votes
1 answer
41 views

Why is flutter giving me this error and how do i fix it?

Good Morning, I was working on this template and I have come to a problem. I can't find any solutions online to fix the problem. I am getting an error at URLRequest(url: Uri.parse(selectedUrl!)). ...
Rayan syed's user avatar
-1 votes
1 answer
51 views

Is it a good practice to use uri.toURL().openConnection()? [closed]

Should I use uri.toURL().openConnection(); since URL is deprecated from java 20 Path path = Paths.get(apiUrl); URI uri = path.toUri(); HttpURLConnection connection = (HttpURLConnection) uri....
Swapnil Sharma's user avatar
0 votes
0 answers
21 views

Avoid long lines inside nested data uri

I have become a fan of single-file web applications. Now I try to make it installable via an embedded manifest. Ideally I would like to have the manifest directly editable (i.e. not base 64 - when ...
Stefan Hegny's user avatar
  • 2,158
-1 votes
1 answer
38 views

How to use ansible to query local websites?

I am trying to health check a web host containing multiple websites. is is possible to cycle through different sites using the same port using the URI module? I have this code : # Check site directory ...
Mr. E's user avatar
  • 505
0 votes
0 answers
24 views

How to open a file from Uri in Android?

I want to open a file from storage then read content and handle data further. I added permission to AndroidManifest.xml <uses-permission android:name="android.permission....
Ken Nguyen's user avatar
1 vote
1 answer
38 views

PS function to populate IDs to URI

I have the following string $list = @("123","456","789") $template = "https://mysite.test/api/v1/policy/{id}/version/{id}/example" I am working on a function ...
Douda's user avatar
  • 188
0 votes
0 answers
22 views

UriFormatException "The Authority/Host could not be parsed.", relative file URI, Linux only

I am getting this error when trying to assemble an absolute file URI, using a relative file uri in the first place, with the file: or file:./ syntax for the relative URI. Any idea why this behaves ...
Erik Hart's user avatar
  • 1,216
0 votes
1 answer
38 views

Is it possible to get the exact requested resource for which a policy gets evaluated in Keycloak?

I want to develop a custom policy provider for Keycloak, that evaluates the decision based on the URI of the requested resource. The resource is /resource/{id}. If the client requests /resource/1 the ...
Legator4TM's user avatar
0 votes
3 answers
45 views

Why is my router causing not to read the css?

I created a router from scratch. It's a simple router : class Router { private static array $routes; public static function register($route = '/', $filename=''){ self::$routes[$route] ...
Zakaria DOUIH's user avatar
0 votes
0 answers
46 views

URL Protocol to Open URL in Specific Browser

I have tried to set a URL protocol to open a URL in a specific browser. Trying to replicate the way microsoft-edge: works. I have viv-window as below. It opens the program correctly but doesn't carry ...
JustLearning's user avatar
2 votes
1 answer
43 views

How the pattern of URIs for an rdf graph should look like

I want to build an rdf knowledge-graph, but I am still unsure which pattern to use in my URIs. Should I also differentiate my classes, instances and properties in the path, for example like this: http:...
okai's user avatar
  • 23
0 votes
1 answer
39 views

How can I robustly combine URIs in C# to handle leading/trailing slashes? [duplicate]

I'm working on a C# project where I need to combine a base URL with various endpoints. However, I'm running into issues when the endpoint has a leading slash. For example: string baseUrl = "https:...
Alex Hovy's user avatar
0 votes
0 answers
41 views

joi schema uri validation not giving error for invalid uri

I have this joi schema for a field: link: Joi.string() .uri({ scheme: ['https'] }) .max(256) .required() .error((error: JoiError[]) => new Error('link not valid') as string)), and ...
Krutarth Dave's user avatar
1 vote
0 answers
23 views

Restore Uri from SharedPreferencies - No persistable permission grants

How to backup/restore some Uri for reuse after app restart? We have a Uri from a file picker and use it to save some data to the file. Now we want to backup this Uri (file path): myPrefsEdit.putString(...
PaulHook's user avatar
0 votes
0 answers
19 views

Image URI problems after using Ucrop

I want to choose an image from the Gallery and crop it with a one to one ratio and display it, when clicked it is supposed, to open the gallery again and repeat the whole process, when I do it for the ...
Deimos's user avatar
  • 45
0 votes
0 answers
32 views

Xamarin.UWP: Build URL from own app to launch from ToastButton [duplicate]

I have a Xamarin.Forms app. In Package.appxmanifest of the UWP variant I added <uap:Extension Category="windows.protocol"> <uap:Protocol Name="my-app"> ...
Bernd Morgeneyer's user avatar
1 vote
1 answer
73 views

Weirdness with URI class in .NET

I found a weirdness with URI class in my .net framework 4.8 project. The strange thing is that the same code works differently in my simple console application and in the local copy of the production ...
Denis Kaminsky's user avatar
0 votes
1 answer
22 views

How to Get and Delete the file from Image element source C#

Context: my end user selects an image from his computer to use as his Profile pic in my C# standalone desktop application. And the backend basically copies the image selected by the end user in the ...
Alok Nath Jha's user avatar
0 votes
0 answers
15 views

URI path, executable program and its arguments

I was reading for the first time about the concept and syntax of Uniform Resource Identifier (URI) on wikipedia. They give an example : http://www.example.com/questions/3456/my-document and they say ...
roi_saumon's user avatar
1 vote
0 answers
28 views

Uri to File to Font in Jetpack Compose

I know how to use fonts from resourses. But I don't want to load the app with a bunch of fonts. Therefore, it probably possible to use fonts from the local storage using Uri or something else. How to ...
CosmicTea's user avatar
  • 100
0 votes
0 answers
32 views

Jetpack compose. How to get Uri for a scaled image?

I'm trying to add the ability to zoom a picture. To do this I have a scalable container in which I want to put my Image. Here is my code: @Composable fun ZoomableContainer( modifier: Modifier = ...
testivanivan's user avatar
  • 1,368
0 votes
1 answer
77 views

voice recording in flutter web

I am trying to record voice with flutter_sound package in flutter. After stop recording, it returns voice's path as something like this: blob:http://localhost:64911/e9c17898-7698-4fd5-8739-...
yalda mohasseli's user avatar
0 votes
0 answers
22 views

Intent to record a video using CaptureVideo Contract, get this video in return and show it on a videoview

I'm trying to achieve the goal using following goal. ActivityResultLauncher<Uri> launcher = registerForActivityResult(new ActivityResultContracts.CaptureVideo(), new ActivityResultCallback<...
Muhammad Salman's user avatar
0 votes
0 answers
69 views

Expo Image Picker URI to URL

I'm using expo image picker, after the function is done i get an URI tha looks something like this: file:///data/user/0/host.exp.exponent/cache/ExperienceData/%2540anonymous%252FAtt38-9e0c0770-b06a-...
Sculptor's user avatar
0 votes
0 answers
23 views

Trying to pick images using Uri but getting endless Security Exceptions

Hey Im making simple simple activity that has the whole purpose opening the gallery, making the user choose a picture and taking that picture's uri value, saving on sharedpref but also making it the ...
volvie's user avatar
  • 1
0 votes
2 answers
133 views

Android Camera: The displayed image fails to refresh after the initial photo is taken

I'm developing an app that enables users to capture photos using the built-in camera of their phones and then display the captured photo within the app using an AsyncImage object from Coli. The ...
yourosehead's user avatar
0 votes
1 answer
54 views

URI doesn't exist [closed]

I want to import my "post_model" and "myapi" file in the main file to use their classes but I can't import them. I have no idea why. The problem occurs only in the main.dart file. ...
Hana.HD's user avatar
  • 89
1 vote
1 answer
75 views

How do I run XQuery in XSLT 3.0?

I'm trying to find a way to run XQuery within XSLT as I have a large library of XQuery logic that I've been using for enriching XML payloads in a Oracle database and I now need to migrate away from ...
Alex's user avatar
  • 15
0 votes
0 answers
63 views

Fetching remote files using file:// URI scheme in Python

There's a thread that talks about fetching local files with Python using a connection adapter. The solutions provided in that thread do not work for remote files (file://<host>/...path). Is ...
Bruno's user avatar
  • 73
0 votes
0 answers
40 views

Imageview does not keep the selected image after changing activity

I have a MainActivity and a EditActivity, Main shows default info, then it can be changed on EditActivity which sends new info to MainActivity. Edit has a ImageView "@+id/edit_profile_picture&...
user24737139's user avatar
1 vote
2 answers
33 views

Convert absolute filesystem path to a file URI in a platform-agnostic way with boost url

The question Convert absolute filesystem path to a file URI in a platform-agnostic way is six years old and now we have boost url https://www.boost.org/doc/libs/1_85_0/libs/url/doc/html/index.html. Is ...
ThomasL.'s user avatar
0 votes
0 answers
38 views

How to Address URL Manipulation Vulnerabilities in Spring Boot Application Exporting JSON Data?

I'm developing a Spring Boot application where I have an endpoint /EventDataExport/ that accepts JSON data. I'm concerned about URL manipulation vulnerabilities in my code. Here's a summarized snippet ...
Tushar 's user avatar
0 votes
1 answer
84 views

How to pick a folder using Xamarin and Intent.ActionOpenDocumentTree

I create the request and pick a folder on my sd card using this: Intent intent = new Intent(Intent.ActionOpenDocumentTree); intent.PutExtra("android.content.extra.SHOW_ADVANCED", true); ...
John's user avatar
  • 6,179
0 votes
0 answers
42 views

Encoding a URL with : and / in their queries

Im trying to write a spring app for reporting to use XCP/Xen servers rest api and hitting a bit of an issue with the URI's and how they pass through their search/tags to filter you need to pass ...
Rhodderz's user avatar
0 votes
1 answer
44 views

Flutter check if url has '/' at the end

In flutter I need concatenate server and file addresses. The problem is that server address may not contain '/' at the end. What is the best way to check and solve it? Now I am doing like this: String ...
Vladimir T's user avatar
0 votes
2 answers
71 views

Flutter Uri.https doesn't give any errors

There's not much to say about my problem. The code is: Future<bool> getThatUrl(cid) async { //cid = 0, for example Map<String, dynamic> parameters = Map(); String email = 'anymail@...
Sisalik's user avatar
  • 78
0 votes
0 answers
23 views

I can't convert the uri to an image

I make a request to the server and get an object from which I take the name and images fields. Example of a request and response http://94.228.112.46:8080/api/products/all [ { "id&...
Andy Good's user avatar
0 votes
0 answers
26 views

Why doesn't MediaElement relativeOrAbsolute work in .NET8?

I'm trying to utilize MediaElement in WPF to play video files with .mp4 or .wmv extension. However, I'm having trouble passing the source as a relative path or Pack URI. The strange thing is that when ...
wpf's user avatar
  • 9
0 votes
0 answers
19 views

Expo Pop Up Stating "Error Uploading ImageProperty 'uri' Doesn't Exist (Firebase)

I'm a beginner in coding and have been attempting to create an Image Picker that uses Firebase as storage. At this point I am able to access my pictures and select them, however when I attempt to ...
Jowens4954 's user avatar
0 votes
1 answer
60 views

Why does RFC 3986 (URI generic syntax) declare the "host" component to be case-insensitive when the syntax rules show it to be case-sensitive?

First, a reminder to future self (the figure RFC 3986, Section 3. Syntax Components complemented with Section 3.2. Authority): The following are two example URIs and their component parts: ...
toraritte's user avatar
  • 7,807
0 votes
1 answer
1k views

spring error exception with oauth2 and securityconfig

Good morning, I'm redoing a demo and I have a compilation error,I have 3 exceptions which all have a link : threw exception with message: authorizationUri cannot be empty. org.springframework.beans....
Christophe's user avatar
0 votes
0 answers
28 views

Can't perform CRUD operation using custom content provider

I had just learned about Content Provider throught android's official documentation and using that documentation and youtube, I tried to create my own custom content provider using a simple ...
Prakhar_Pathak's user avatar

1
2 3 4 5
124