Unable to access picture taken from camera


Hello, I am using cordova camera plugin version 2.1.0. cordova file plug in is 4.1.1. My Cordova framework is 5.2.0
I am trying to take a picture using camera plugin.
$cordovaCamera.getPicture({ quality: 85, sourceType: navigator.camera.PictureSourceType.CAMERA, destinationType: navigator.camera.DestinationType.FILE_URI, saveToPhotoAlbum: true, targetWidth: APP.cameraImageMaxPixels }) .then(function (imageUri) { console.log('Image URI: ' + imageUri); }, fail);

above function is returning file uri like this file:///storage/emulated/0/Android/data/com.111.adexpress.DEV1/cache/1457384538218.jpg

When I try to access actual file file path, $cordovaFile.checkFile(…) is always throwing error saying
Cannot locate file:///storage/emulated/0/Android/data/com.111.adexpress.DEV1/cache/1457384538218.jpg

Actually, I want to access the URI with the full path to the image, just like I get it if I use the camera instead:

Like - “file:///storage/emulated/0/Pictures/IMG_20160308_124222.jpg”

Can some one help me to resolve this an able to access absolute file path? (earlier I am using camera plugin version 1.1.0 and it worked fine. I upgraded to 2.X and I am seeing this problem). Any help is highly appreciated.


Hello, Can some one provide any input on this please?