How to show stored captured imaged from file.dataDirectory?


#1

Hi,
in my app I use camera plugin to capture an image, than I use File plugin to store it in device.
Image is stored in file.dataDirectory. A have this URI in variable, but <img> tag do not show URI: file:///data/data/.../dir/nameOfImage.jpg.

Even if I use file.readAsDataURL. Its response is onlydata:image/jpeg;base64,dGVzdA==` . No other data.

How to use file plugin to be able to show an image in <img> tag?


#2

Solution: The app can’t be started with flag --livereload . If you build it with --prod flagEverything is working