Page 1 of 1

Show image from fileuri

Posted: Mon Oct 28, 2013 3:10 pm
by Francisco Narro

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?


Show image from fileuri

Posted: Mon Oct 28, 2013 3:26 pm
by Maryna Brodina

Show image from fileuri

Posted: Tue Oct 29, 2013 12:13 pm
by Francisco Narro

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?


Show image from fileuri

Posted: Tue Oct 29, 2013 3:12 pm
by maxkatz

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.