I am trying to get a FileInputStream object on an image that the user selects from the picture gallery. This is the android URI returned by a
FileInputStream
URI
a
You could use the toString method of the android Uri in combination of the String based constructor of the Java URI.
toString
Uri
String
android.net.Uri auri = new android.net.Uri(what ever); java.net.URI juri = new java.net.URI(auri.toString());
Android URI | Java URI