title: Get file content of a ImageUri
body: <p>I would like to update an image taken from my phone to Parse, we are struggling with this simple feature since we cannot convert our ImageUri to a real file with Phonegap (in order to upload it to our Parse server), We are using Ripple to emulate the phone behaviour.</p>
  
  <p>We have try with this piece of code:</p>
  
  <pre><code>var reader = new FileReader();
  
  
  reader.onloadend = function(evt) {
  
  console.log("read success");
  console.log(evt.target.result);
  evt.target.result;
  };
  reader.readAsText(user.myPicture);
  </code></pre>
  
  <p>But i get this error: <code>TypeError: Object #&lt;Console&gt; has no method 'warning'</code></p>
  
  <p>Seems like FileReader of phonegap does not like the kind of URI that I get from navigator.camera.getPicture()</p>
  
  <pre><code>$scope.getPicture = function(){
  
              navigator.camera.getPicture(onSuccess, onFail,
                  //Options =&gt; http://docs.phonegap.com/en/2.6.0/cordova_camera_camera.md.html#Camera
                  { quality: 50,
                      destinationType:Camera.DestinationType.FILE_URI,
                      encodingType: Camera.EncodingType.JPEG,
                      sourceType : Camera.PictureSourceType.PHOTOLIBRARY ,//CAMERA,
                      targetWidth: 100,
                      targetHeight: 100
                  });
              function onSuccess(imageURI) {
                  var image = document.getElementById('preview');
                  image.src = imageURI;
                  $scope.myPicture = image.src;
  
  //                $scope.$apply(function() {
  //                    ctrl.$setViewValue(image.src);
  //                });
              }
  
              function onFail(message) {
                  alert('Failed because: ' + message);
                  ctrl.$setValidity('Failed because: ' + message, false);
              }
  
          };
  </code></pre>
  
  <p>Is there any other way in to get the File without using JQuery $.get()?</p>
  
  <p>There is a similar post <a href="https://stackoverflow.com/questions/16298439/load-contents-of-image-from-camera-to-a-file">here</a> that has the same problem</p>