title: How to load a file into a stream on Android knowing its Jnet_Uri?
body: <p>I'm writing an Android FMX app in Delphi 10.3 Rio. There I'm selecting photos from the gallery (via <code>TJIntent.JavaClass.ACTION_OPEN_DOCUMENT</code>) and getting back <code>Jnet_Uri</code> entries. I can use those to read image EXIF (with TJExifInterface). Now I also need to load these images into a stream for further processing. How do I do this?</p>
  
  <p>When I try to convert Jnet_Uri to a path with <code>uri.getPath</code>, it comes out like <code>/document/image:26591</code>. <code>uri.toString</code> gives me <code>content://com.android.providers.media.documents/document/image%3A26674</code>. <code>TMemoryStream.LoadFromFile</code> fails to load from both of these paths:</p>
  
  <blockquote>
    <p>Cannot open file "/document/image:26724". No such file or directory<br>
    Cannot open file "/content:/com.android.providers.media.documents/document/image%3A26724". Not a directory</p>
  </blockquote>
  
  <p>Hence the question, how knowing a Jnet_Uri do I load files contents into a stream?</p>