navigator.camera.getPicture(function(imageData){
//console.log(imageData);
}, function(errorMsg){
// Most likely error is user cancelling out of camera
console.log(errorMsg);
},
{
quality: 50,
sourceType: Camera.PictureSourceType.CAMERA,
destinationType: Camera.DestinationType.DATA_URL
});
});
Code Snippet to get camera image in base64 format
navigator.camera.getPicture(function(imageData){ //console.log(imageData); }, function(errorMsg){ // Most likely error is user cancelling out of camera console.log(errorMsg); }, { quality: 50, sourceType: Camera.PictureSourceType.CAMERA, destinationType: Camera.DestinationType.DATA_URL }); });