android - Cordova Plugin: Unable to retrieve path to picture -


searching solution following problem while , can't seem find solutions. welcome.

the camera plugin of cordova returns following error when trying access picture using camera.

unable retrieve path picture!

i tried file_uri , data_url.

i use cordova version 5.0.0 , cordova-plugin-camera.

the following path fails e.g.

/storage/emulated/0/download/horse-331746_640.jpg  

the following path functions e.g.

/storage/emulated/0/whatsapp/media/whatsapp images/img-2015019-wa0000.jpg  

my function:

function capturenow(bgallery){      if(bgallery === true){         navigator.camera.getpicture(oncapturephoto, cameraonfail, {             quality: 100,             correctorientation: 1,             targetwidth: 500,             targetheight: 500,             encodingtype: camera.encodingtype.jpeg,             destinationtype: camera.destinationtype.file_uri,             sourcetype: camera.picturesourcetype.photolibrary         });     } else {         navigator.camera.getpicture(oncapturephoto, cameraonfail, {             quality: 100,             correctorientation: 1,             targetwidth: 500,             targetheight: 500,             encodingtype: camera.encodingtype.jpeg,             destinationtype: camera.destinationtype.file_uri         });     } } 


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -