6,174 questions
0 votes
0 answers
126 views
How to identify cause of "Cannot convert from type '<null>' to type 'System.Uri' in WPF
I am working on an C# WPF application, containing some ~170 projects with many more .xaml files. When starting the application via Visual Studio shows 3 XAML binding errors. Cannot convert '<null&...
-3 votes
1 answer
167 views
.NET 9 C# equivalent of Python re.compile to parse Uri strings
I have the following regex in Python which parses Uri: uri_regex = re.compile( r'^(?:http|ftp)s?://' # http:// or https:// r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}...
1 vote
1 answer
73 views
How to upload image from photo picker?
I let user to pick and image from their gallery via photo picker (compose variant) as described here. It works fine, I got URI that can be used in Coil's AsyncImage to display the image. Then, I need ...
3 votes
0 answers
83 views
Why does relativizing a java.net.URI with "/" as its path against one with "" as its path yield the empty string?
Consider: // Two absolute (i.e. scheme-bearing), hierarchical URIs that differ only in their // paths. URI u0 = URI.create("http://example.com"); assert u0.getPath().equals(""); ...
1 vote
0 answers
65 views
Issue with updating a file owned by MediaStore
On some of the MP3 files on my device (which is currently an emulator), I want to modify their ID3 data. The general approach I am using is: copy the file from the Music folder (/storage/emulated/0/...
4 votes
1 answer
90 views
Usage of Uri.ToString() in JsonHttpClient in ServiceStack
In the following code of JsonHttpClient.cs of ServiceStack library the absoluteUrl is malformed: absoluteUrl = new Uri(absoluteUrl).ToString(); For example, if absoluteUrl contains a value of: https:/...
0 votes
0 answers
41 views
Jetpack Compose rememberLauncherForActivityResult wrong file URI [duplicate]
I am new to Android and Jetpack Compose in general, and the documentation has not been very helpful so far. I am trying to: pick a file from the device store URI and content read the above at app ...
0 votes
0 answers
42 views
LargeIcon in a media notification appears extremely pixelated even though the bitmap/original album art is of good quality
When viewing my media notification the LargeIcon of the albumart is very pixelated. However Samsung Music's notification of the same albumart is of the correct resolution. I've attached 4 images below ...
0 votes
0 answers
81 views
RFC 3986 & BIP21: How to handle `+` in query parameter containing a nested URI
I'm building a BIP21 Uri parser for the Dart/Flutter community and I'm unsure how to properly handle the + of a path component nested in the query strings. According to RFC 3986, the + character is a ...
1 vote
0 answers
39 views
Picked image shows briefly, then disappears from ImageView.Why?
I'm working on an Android app and trying to pick a profile image from the gallery. I use setImageURI(uri) to display it in a CircleImageView. The image shows perfectly for 4–5 seconds and then ...
0 votes
0 answers
34 views
Why are images in expo-file-system’s documentDirectory lost after TestFlight update? (Expo/React Native)
I’m using Expo (EAS Build, managed workflow) and React Native. When a user selects an image, I copy it to expo-file-system’s documentDirectory and save the URI in AsyncStorage. This works fine until I ...
0 votes
0 answers
37 views
Build Uri for another endpoint in same controller
I'm running an ASP.NET Web API on .NET 4.7.1, and I am trying to build a uri to put in my location header for asynchronous-style requests (first endpoint starts a task and returns a 200 with a query ...
2 votes
1 answer
76 views
Translate public id string into public id urn using rfc 3151
RFC 3151 provides a way to encode general public ids to URNs. For example, -//OASIS//DTD DocBook XML V4.1.2//EN becomes urn:publicid:-:OASIS:DTD+DocBook+XML+V4.1.2:EN. Is there a facility in the Java ...
0 votes
0 answers
32 views
kotlin download a file divided into multiple uris in a single request and show a single progress
as stated in the subject, I have an application that provides an audio download service. the problem is that the audio is divided into multiple smaller files (for example: an audio track divided into ...
0 votes
0 answers
28 views
Linked data: relative URIs of fragments
I am working on an Linked Data / RDF implementation. Following https://www.w3.org/TR/ldp-bp/#use-relative-uris I would like to use relative URIs in sub-graphs. (NOTE that while the referenced best ...