title: resolveLocalFileSystemURI error code 5 windows phone 7 phonegap
body: <p>I've tried implement this work around
  1.<strong>capture a photo</strong> 
  2.<strong>Get the photo from it's saved place</strong> 
  3.<strong>Read photo as base64</strong></p>
  
  <p>I've followed this methodology: </p>
  
  <pre><code>var cameraOptions = {};
  function capturePhoto() {
      console.log("capture photo");
      cameraOptions = { quality: 70, destinationType: Camera.DestinationType.FILE_URI, sourceType: Camera.PictureSourceType.CAMERA, saveToPhotoAlbum: true };
      doIt();
  }
  function doIt() {
      navigator.camera.getPicture(onCameraSuccess, onCameraFail, cameraOptions);
  }
  function onCameraSuccess(imageURI) {
      console.log("Camera Success");
  
      $('#MokhalfaPhotoLocation').val(imageURI);
      console.log("Image URI: " + imageURI);
      window.resolveLocalFileSystemURI(imageURI, onResolveImageSuccess, onFail); //get the file from the physical path...
  }
    function onResolveImageSuccess(fileEntry) {
      fileEntry.file(gotFile, onFail);
  }
  function gotFile(file) {
      readDataUrl(file);
  }
  function readDataUrl(file) {
      console.log("read file as dataUrl");
      var reader = new FileReader();
      reader.onloadend = function (evt) {
          console.log("Read as data URL");
          window.localStorage.setItem("mokhalfaPhotoURL", evt.target.result);
   };
      reader.readAsDataURL(file);
  }
  </code></pre>
  
  <p>this chain is worked fine till the CameraSuccess then it fail on the line</p>
  
  <pre><code>window.resolveLocalFileSystemURI(imageURI, onResolveImageSuccess, onFail);
  </code></pre>
  
  <p>it entered the onFail event With error code = 5</p>
  
  <p>btw, this code worked fine on Android but the issue is here with Windows Phone 7
  any one knows what is the problem?</p>