I use the cordova-plugin-camera to ask user to choose an image from PHOTOLIBRARY. I am testing it using an Android
The options I pass to the camera are:
options: {
sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
destinationType: Camera.DestinationType.FILE_URI
}
Then I on success call back I get the following URI:
content://media/external/images/media/14555
But when I try to use it to display on the html as:
<img src="content://media/external/images/media/14555"/>
It doesn't work and shows this message
Failed to load resource: the server responded with a status of 404 (Not Found)
I have tried everything and I can't get the image to show. Just one more thing I cannot use DATA_URL on the camera plugin because I need to access the actual file.