Francisco Narro
Posts: 0
Joined: Thu Oct 03, 2013 9:58 am

Show image from fileuri

Hi

I use de Camera Service to take a photo and to save locally.

After that, I have the image fileuri: file:///mnt/sdcard/Android/data/io.appery.project....

¿How can I show this picture in my image component?

Francisco Narro
Posts: 0
Joined: Thu Oct 03, 2013 9:58 am

Show image from fileuri

Hello!

I have seen both posts and one of them tell about uploading an image and the other tell about putting an image from de binary data.

In this moment, I don't know how to access to this file because it's in a not accesible folder.
Uploading the file, I think neither is a solution because I have to work offline.

¿Any example to read the file from this fileuri?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Show image from fileuri

Try the following code to specify file path:

Appery("mobileimage").attr("src","file:///mnt/sdcard/Android/data/io.appery.project....");

where 'mobileimage' is an Image component name.

Return to “Issues”