title: PhoneGap - storing an image, then getting its base64encoded data
body: <p>I am using the PhoneGap Camera API to take a picture and store it using <code>destinationType.FILE_URI</code>. This portion is working. I can subsequently take the path provided and set it as the src of an HTML image, and the image appears.</p>
  
  <p>Later in the code, I want to grab the image, convert it to base64encoded data, and transmit it to the server. This is where the problem is.</p>
  
  <p>I am getting <code>{"code" : 5}</code> (which, according to <a href="http://groups.google.com/group/phonegap/browse_thread/thread/7f86cee8c9b76e0b" rel="nofollow">this</a>, means it's an invalid URI) in my fail callback when using:</p>
  
  <pre class="lang-js prettyprint-override"><code>fileSystem.root.getFile("content://media/external/images/media/4292", null, gotFileEntry, fail);
  </code></pre>
  
  <p>I don't understand why I can set an <code>img.src</code>, but phoneGap can't use the same URI to find the file?</p>