Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70891

Use FILE_URI from camera plugin in ngSrc

$
0
0

@JaiKrish wrote:

I use ionic-native library to access the camera plugin with the following options:

let options = {
      quality: 50,
      destinationType: 1,
      sourceType: 1,
      allowEdit: false,
      encodingType: 1,
      mediaType: 0,
      correctOrientation: true,
      saveToPhotoAlbum: false,
      cameraDirection: 1
    };

After taking the picture, I get the FILE_URI as file:///storage/emulated/0/Android/data/com.company.testApp/cache/1461661383435.png
But when I use it in the ngSrc property of the img tag, It just displays an empty block.
While inspecting with chrome, the request for the image has the status of (blocked:other)

Also I don't want to use DATA_URL, since it degrades the performance.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70891

Trending Articles