$cordovaCamera Save Image


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



The documentation says you should be using FILE_URI rather than DATA_URI.

I believe when you make that change it should store on the device rather than in memory.



Thanks nicraboy,
you where right.