How to Convert Cordova Image Picker Results to Base64 format?
<p>Hi I want to know how to Convert the Image Picker Results to Base64 , While Getting the image through <strong>Cordova Camera</strong> I can get base64 format data but in <strong>cordova image picker</strong> it does not working </p>

<p>I have Seen the below link and applied its Working for Cordova Camera Image Capture but not working for cordova image picker  </p>

<pre><code>http://stackoverflow.com/questions/29456897/cordova-image-picker-convert-to-base64
</code></pre>

<p><strong>Not Working for cordova image Picker</strong> </p>

<pre><code> $scope.Pick=function(){
  var options = {
      quality: 50,
      destinationType: Camera.DestinationType.DATA_URL,
      sourceType: Camera.PictureSourceType.CAMERA,
      allowEdit: true,
      encodingType: Camera.EncodingType.JPEG,
      targetWidth: 100,
      targetHeight: 100,
      popoverOptions: CameraPopoverOptions,
      saveToPhotoAlbum: false,
    correctOrientation:true
    };

  $cordovaImagePicker.getPictures(options)
    .then(function (results) {
      for (var i = 0; i &lt; results.length; i++) {
        console.log('Image URI: ' + results[i]);
      }
      $scope.results=results;
    }, function(error) {
    });

};
</code></pre>

<p><strong>Working For Cordova Image Capture</strong></p>

<pre><code>$scope.captureimage=function()
{
 var options = {
      quality: 100,
      destinationType: Camera.DestinationType.DATA_URL,
      sourceType: Camera.PictureSourceType.CAMERA,
      allowEdit: true,
      encodingType: Camera.EncodingType.JPEG,
      targetWidth: 100,
      targetHeight: 100,
      popoverOptions: CameraPopoverOptions,
      saveToPhotoAlbum: false,
    correctOrientation:true
    };
    $cordovaCamera.getPicture(options).then(function(imageData) {

      $scope.cimage=imageData;
      alert($scope.cimage);
    }, function(err) {
    });

  }
</code></pre>