Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Can't show images from Android storage

$
0
0

Hey,

I'm developing an app where users can choose a photo from their gallery to use as a profile photo. I'm using cordova-plugin-camera to get this image and I'm having some problems with displaying it. I tracked the issue down and it seems to be related with an impossibility to show images from the device internal storage.

In my case, I'm trying to display an image located in file:///storage/emulated/0/DCIM/Camera, but the app doesn't show the image, just a broken link and the alt attribute on the img tag.

I've tried setting in both src and ng-src and the problem remains the same.

I'm testing it in a Samsung Galaxy S3 running Cyanogenmod 13.0 (Android 6.0.1). Any suggestion on how to solve this? Thanks in advance.


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>