I’m using $cordovaCamera,
but this not saving the photo in the gallery. How do I do that?
shows only the base64
follow my code !
$scope.teste = function() {
var options = {
quality : 75,
destinationType : Camera.DestinationType.DATA_URL,
sourceType : Camera.PictureSourceType.CAMERA,
allowEdit : false,
encodingType: Camera.EncodingType.JPEG,
targetWidth: 100,
targetHeight: 100,
popoverOptions: CameraPopoverOptions,
saveToPhotoAlbum: true
};
$cordovaCamera.getPicture(options).then(function(imageData) {
// ok
}, function(err) {
alert("Ocorreu um erro:" + err);
// An error occured. Show a message to the user
});
}