Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // java-like pseudocode:
- String myFile = ... // some path, relative or absolute, to a file in an accessible file system
- URI = (new File(myFile)).getCanonicalFile().toURI();
- String imageUri = File.toUri().toString().replaceFirst("^file:/", "");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement