Android Question WhatsApp URI

nicolino33

Active Member
Licensed User
Longtime User
Hello all, I'm not getting path of file or image from URI that I receive from whatsapp,
URI comes like this: content://com.whatsapp.provider.media/item/66381
Can anyone help me to get the image or file path from it? I tryed various method, but never resolve...
 

DonManfred

Expert
Licensed User
Longtime User
You dont need the path. You can use the given path and filename to access the file.
Hiding the code you are using is of no help for us to help you.
 
Upvote 0

nicolino33

Active Member
Licensed User
Longtime User
this is the code:

B4X:
  Private in As JavaObject = Activity.GetStartingIntent
  URI = in.RunMethod("getParcelableExtra", Array("android.intent.extra.STREAM"))
 
Upvote 0

nicolino33

Active Member
Licensed User
Longtime User
Hi Erel, thanks for you reply, I have already checked but there is not, I have to extract the information from the bytes of the files….
 
Upvote 0
Top