Questions tagged [uri]
A Uniform Resource Identifier (or URI) is a string of characters used to identify a name or resource. URI is legacy terminology. In most cases, the term URL should be used instead.
5,988
questions
0
votes
1
answer
8
views
Escape backslash in Ansible while posting json to teams webhook using uri module
I have a file called test.log where it contains a structure like below:
{"Check something" : "Pass" , "Result" : "Found something -
Name Path
test C:\Windows\...
0
votes
0
answers
34
views
how to store large list of ids in the browser uri
I have a multi select on a webpage. The multi select value is an array of IDs and is handled on the client and stored in browser's uri, in query-string.
After the page is loaded or the filter (multi ...
0
votes
0
answers
21
views
Open html file to bookmark
I'm trying to open a local HTML file from within my Java application and open it to a specific bookmark. I can successfully create the URI and open the browser, and it brings up the correct file, but ...
0
votes
1
answer
47
views
How to compress file in android studio to upload in cloud?
I am using AWS Amplify as my backend and I'm using amplify S3 to store image and video.But I want to upload files in best possible compression(Example 1.5mb->120kb).Can anyone suggest me what is ...
-1
votes
0
answers
9
views
Subdomain vs different paths
My APP is split into 2 separate modes, sort of like stackoverflow is split into many different specific domains.
I am facing the design decision of whether to split the modes into subdomains like so:
...
0
votes
0
answers
9
views
Spring Boot get url pattern before DispatcherServlet
I know at some point a request has best_matching_pattern_attribute which contains the best pattern for the requested uri. But I need this pattern in the middle of the filter chain in Spirng Security.
...
0
votes
0
answers
30
views
how to parse email with curly braces in spring property
I have the following code which sends an email to the address in mailAddress property.
<route message="message" destination="mailto:${mailAddress}">
<param name="...
0
votes
0
answers
38
views
How to use a Redirect URI with OAuth 2.0 without a Webpage?
I'm working with an application that has no API and need to interface with a web-based software. When accessing their API, I am required to have a redirect URI in order to obtain a Refresh Token, ...
0
votes
0
answers
8
views
Saving an image to a newly created folder with Uri?
The app i am creating is supposed to save a picture in a sub folder of the pictures folder. As long as i save the picture to the base folder it works fine, but it returns an error as soon as i try to ...
0
votes
0
answers
6
views
Weirdness with spaces and/or "%20" in query string
I have a file on my server: "test file.dat" (without the quotes of course). The file resides in a folder called "data%20dir". Yes, the "%20" is literal. So the complete ...
0
votes
0
answers
43
views
Why Uri Class Trim the Trailing Tab Character
I have the following code:
using System;
public class Program
{
public static void Main()
{
// "http://example.com/a" length is 20
var u1 = new ...
0
votes
0
answers
10
views
RESTCONF URI with Multi-Indexed Resources
I am trying to find examples of URI's with multi-indexed resources to see what they would like so I can try to start using them. What would an example URI look like?
0
votes
0
answers
8
views
I am facing problem that variable uri might not have initialised
public static void repostWhatsApp(Context paramContext, boolean paramBoolean, String paramString) {
Uri uri;
Intent intent = new Intent();
intent.setAction("android.intent.action.SEND");
if (...
0
votes
0
answers
18
views
Spring Boot request Parameters not decoding '+'
This problem is only applicable to a few instances of our Spring Boot server in one environment. A server is running several instances in three different environments(DEV/TEST/PROD). The following ...
0
votes
0
answers
9
views
Get the IPFS/contractURI of a contract through Etherscan's API
I'm trying to get the IPFS of a verified contract from Etherscan through their API, but I'm having trouble getting a correct response. I figured that I could get this from using the get contract ABI ...
0
votes
0
answers
8
views
Callback OAuth need something? android
I am implementing the zoom OAuth, in which in the zoom settings I need to add a Redirect URL for OAuth in which is "http://misitio.online/web/callback" which resolves a link like this
http://...
0
votes
0
answers
26
views
Intent filter using path,pathPrefix, or pathPattern with aouth2 zoom Android
I am implementing the zoom OAuth, in which in the zoom settings I need to add a Redirect URL for OAuth in which is "http://misitio.online/web/callback"
which resolves a link like this
http://...
0
votes
1
answer
18
views
how to use UriComponentsBuilder for replacing pathsegment
I have a url as below
http://example.com/{id}
I want to change it to
http://example.com/12
I have coded as below
url= "http://example.com/{id}";
UriComponentsBuilder builder = ...
0
votes
1
answer
31
views
Buggy incompatibility with java.net.URLEncoder vs. java.net.URI and java.io.File?
I just discovered some bug in java related to URL encoding, involving the java.net.URLEncoder, java.net.URI, and java.io.File, independently or together all depending on the same underlying thing.
The ...
0
votes
1
answer
18
views
Unresponsive data.getData for PICK_IMAGE_REQUEST
One of the Activities on an app i am building is a profile update activity with an option to upload display picture. I am trying to implement upload picture option using Picasso through the following ...
0
votes
1
answer
32
views
How to get a high quality recorded audio from RecognitionListener in android SpeechRecognizer?
I try to get a proper audio uri from android SpeechRecognizer at the end of recording without starting the intent because I don't need it's UI showing up on my own recording microphone UI.
Setting the ...
0
votes
2
answers
33
views
How to upload an image to storage firebase from an url
When I get the ImageURI from the edamam API and try to upload it it gives some errors, which I am not getting when I transform the BitMap I get when taking a picture and transform it into URI, I have ...
1
vote
1
answer
25
views
Not able to get query paramter value using android.net.Uri#getQueryParameter
I'm trying to parse query parameters from a URL string using Uri.getQueryParameter(String key) but that method returns null for the passed-in key. That URL that I'm using is /endpoint/path?query1=foo&...
0
votes
0
answers
15
views
creating a custom URI scheme Not sure where i am wrong here
Im trying to get a web browser to send a print to a Thermal Receipt Printer i can do it VIA a console applications, i know it will print if i can just get the URI right...
I can run the Printer.exe ...
0
votes
1
answer
29
views
How to get a lower resolution version of an image from Wikimedia
I want to be able to fetch Wikimedia's images, selecting a custom (or lower) resolution than the default's one.
I've found an image that says that it should be possible by changing the URL, however, ...
0
votes
0
answers
18
views
Windows 10 URI Scheme reference to always open Settings App on Home page
Using "ms-settings:", in the Run command, this opens the Settings App to its Home page. After, if I use "ms-settings:bluetooth", the same Settings App will be redirected to its ...
0
votes
1
answer
27
views
UrllinksController#create is missing a template for this request format and variant. request.formats: ["text/html"] request.variant: []
I have a controller for urllinks and home and have a view for create.js.erb. Showing error when I click on Create Short Link.
Controllers/UrllinksController
class UrllinksController < ...
0
votes
0
answers
21
views
how to open html source string in browser?
Flutter Web question here
I have a string:
<!DOCTYPE html><html><body><h1>Test</h1></body></html>
Is it possible to open it in browser new tab?
I ...
0
votes
0
answers
14
views
failed to get cursor when querying URI table for a PDF file in the Downloads folder of an Android 11 device
On an Android 11 device, through SAF standard file selector, my app selects a PDF file which locates in the public folder Downloads.
In order to get its full path, I try to query the uri table through ...
0
votes
0
answers
24
views
Slack API - Link to custom URI scheme
I have a (working) custom URI scheme that opens an app in my local machine. It looks somewhat like this:
customscheme://?ip=xx.xx.xx.xx?platform=xx
I am trying to send the user a message using the ...
0
votes
0
answers
31
views
Uri.parse() not re-directing properly , for url path
I have been wanting to parse through a URL say "www.abc.xyz/home" from the below code
val baseUrl = "https://www.abc.xyz/home"
val viewIntent = Intent(
Intent....
0
votes
1
answer
26
views
React Native Uri is not Displaying
I have a TouchableOpacity set up as shown below:
<View style={{flexDirection: 'row'}}>
<TouchableOpacity onPress={() => selectImage()} style={{backgroundColor: COLORS.lightGray3, width: ...
0
votes
0
answers
18
views
How to get Bitmap without context from a Uri?
How to get a Bitmap object from an Uri (if I succeed to store it in /data/data/MYFOLDER/myimage.png or file///data/data/MYFOLDER/myimage.png) without context
Does anyone have an idea on how to ...
1
vote
0
answers
46
views
How to show image in android remote view using content URI?
I am having trouble trying to show an image in a remote view with a contentUri. I have outlined the steps I took below. I believe I have followed the procedure correctly but still get a "Can't ...
0
votes
1
answer
77
views
URI::InvalidURIError when performing Feature Tests in RSpec Capybara
I am currently developing feature tests for a Ruby on Rails website in Capybara and every time I attempt to run this test file, I am greeted with the same error.
I have listed the code below for the ...
0
votes
0
answers
33
views
Standardize Uri between Camera and Gallery Intent Android
I'm trying to retrieve URI from gallery and camera in one place (as record in Room database), therefore i need to standardize the access between them. I get it done for the camera by create a file and ...
0
votes
0
answers
15
views
UIApplication openURL to open another app works on some devices
We have an application, App A, which can in some cases open another application that we're also the publisher of, App B.
What we are experiencing is that all phones we test on that uses our latest ...
1
vote
0
answers
9
views
Why is a websocket address (ws://etc) considered URI and not URL?
I understand that any URL is also a URI but ws://example.com also contains information on how (ws) and where (example.com).
As I understand the main difference between URL and URI is that a URL also ...
1
vote
0
answers
34
views
Scoped Storage - File URI shared with other app is null
I am having a problem where I am trying to share a file from one app to another via scoped storage. For some reason App A is trying to send the URI of a file to App B. However, the URI received by App ...
0
votes
0
answers
31
views
Android Gallery return Uri not short-lived
to get an image from Gallery I use
Intent pickIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
but the Uri returned are very short-lived :
content://com.google....
1
vote
0
answers
21
views
Create URI to a file using android Uri.Builder() function
I am new to using Uri's to locate files on the emulators storage in android studio.
I have a png file saved in the android emulators data/data/com.domain.appname/files directory. I would like to ...
1
vote
3
answers
61
views
What is the correct REST representation to query multiple attributes
There is an entity,
class Employee{
int id;
String name;
String phoneNumber;
}
What is the correct REST-ful way of querying the following 4 scenarios:
List of all employees
Employee with a ...
0
votes
0
answers
9
views
ERROR "java.io.FileNotFoundException: /document/image:32: open failed: ENOENT (No such file or directory)" while sending Multipart in Kotlin Android [duplicate]
Please, help....
I am not sure what is wrong with my code. I am trying to send an image file to MongoDB using Ktor. Server side is ok, I can @POST a file using Postman Software but I can't sand ...
2
votes
1
answer
36
views
Java doesn't support IRI?
Example code:
java.net.URI.create("http://测试.com").getHost(); // return null
new java.net.URL("http://测试.com").getHost(); // return "测试.com"
Actual: URI doesn't resolve ...
0
votes
0
answers
26
views
Where can I find the Javascript file for a page returned by uri?
In my app, we have a 'sign in' button in Page 1, which will direct to the actual sign in page.
So when it is clicked, it sends a request to the server, and the server returns a uri.
Then the page is ...
1
vote
1
answer
16
views
Where can I find what the HTML of a uri page looks like in the server in Next.js?
In my Next.js app, there is a 'sign in' button.
When clicked, it will send this request:
const handleAuth0Login = async () => {
try {
const response = await axios.get('/auth/sign-in-with-...
0
votes
0
answers
23
views
Query DCIM folder
public static ArrayList<String> listOfImages(Context context) {
Uri uri;
Cursor cursor;
final String[] columns = { MediaStore.Images.Media.DATA, MediaStore.Images.Media._ID };
...
0
votes
0
answers
47
views
How to load the URI programmatically in asp.net c# without redirection to another page
I'm opening the url link to another page and getting the url querystring link, it is opening fine but in my programming scenario it should not redirect to another page it should red in the ...
1
vote
1
answer
48
views
.htaccess rewrite rule from end of path
I need to rewrite the rule for my url according to this pattern:
Starting url :
https://example.com/path/¶m1=1¶m2=2
Destination url:
https://example.com/file.php?param1=1¶m2=2
...
0
votes
1
answer
17
views
Android - where are videos taken from intent stored?
Let's say I have a method inside my activity that looks like this:
private void dispatchTakeVideoIntent() {
Intent takeVideoIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
if ...