clarklight opened a new issue #761:
URL: https://github.com/apache/cordova-plugin-camera/issues/761


   Not displaying Photo after success call back 
   Not allowed to load local resource
   
   ### What is expected to happen?
   After taking a photo, using the file path to display the photo, by setting 
it into the src tag.
   
   ### What does actually happen?
   The image display is broken and the console is showing
   Not allowed to load local resource: 
   The file path is as such:
   file:///data/user/0/com.abc123.abc123app/cache/1630904187041.jpg
   
   
   ### Command or Code
   navigator.camera.getPicture(onPhotoDataSuccess, onFail, {
       quality: 100,
       targetWidth: 1000,
       targetHeight: 1330,
       destinationType: Camera.DestinationType.NATIVE_URI,
       saveToPhotoAlbum: true,
       correctOrientation: true 
   });
      
   
      function onPhotoDataSuccess(imageURI) {
         console.log(imageURI);
        var cameraImage = document.getElementById('image');
        cameraImage.src = imageURI;
   }
   
   function onFail(message) {
       console.log(message);
   }
   
   
   
   Building on:
   Cordova Android 10.0.1
   Camera plugin version 6.0.0
   Testing on:
   Samsung s10e
   
   
   
   Thanks
   Clark
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to