# Cant save the captured image

**URL:** <https://forum.ionicframework.com/t/cant-save-the-captured-image/44383>\
**Category:** cordova\
**Created:** [February 22, 2016, 3:42am UTC](https://forum.ionicframework.com/t/cant-save-the-captured-image/44383 "2016-02-22T03:42:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![losewin](https://avatars.discourse-cdn.com/v4/letter/l/b77776/32.png) [@losewin](https://forum.ionicframework.com/u/losewin)\
**Post date:** [February 22, 2016, 3:42am UTC](https://forum.ionicframework.com/t/cant-save-the-captured-image/44383/1 "2016-02-22T03:42:01Z")

</div>

Why cant I save or click the checkmark of the Camera plugin?  
though the back and cancel button are working fine only the check/save button is not function when I taking photo…  
What I am missing?

`$scope.takePicture = function () { var options = { quality: 100, destinationType: Camera.DestinationType.FILE_URI, sourceType: Camera.PictureSourceType.CAMERA, encodingType: Camera.EncodingType.JPEG, cameraDirection: 1, saveToPhotoAlbum: true }; CordovaSRV.takePicture(options) .then(function (imageURI) { console.log(imageURI); }, function (error) { console.error(error); }); };`

My Service

`this.takePicture = function (options) {  
var deffered = $q.defer();

```
        $ionicPlatform.ready(function () {
            $cordovaCamera.getPicture(options)
                .then(function (imageData) {
                    deffered.resolve(imageData);
                }, function (error) {
                    deffered.reject(error);
                });
        });

        return deffered.promise;
    };`
```
