Wrong result in takePicture callback method of cordova camera API
I have build one worklight application in Worklight v6 which uses cordova
API version 2.6
I used the sample provided at this location
http://docs.phonegap.com/en/2.6.0/cordova_camera_camera.md.html#Camera
navigator.camera.getPicture(OnSuccess,OnFail,
{quality:50,destinationType:Camera.DestinationType.NATIVE_URI,sourceType:Camera.PictureSourceType.CAMERA,saveToPhotoAlbum:true});
Even when I am using NATIVE_URI result I am getting in OnSuccess method is
file:// uri instead of content://uri as written on documentation.
Camera.DestinationType = {
DATA_URL : 0, // Return image as base64 encoded string
FILE_URI : 1, // Return image file URI
NATIVE_URI : 2 // Return image native URI (eg.
assets-library:// on iOS or content:// on Android)
};
No comments:
Post a Comment