title: How to get Image Object using Cordova?
body: <p>When use use getPicture either we get a relative URL or base64image. But I want to send a image object to Amazon S3. Anyway to do that ?</p>
  
  <p>Here is how I am getting the base64image</p>
  
  <pre><code>// A button will call this function
  //
  function capturePhoto() {
      // Take picture using device camera and retrieve image as base64-encoded string
      navigator.camera.getPicture(onPhotoDataSuccess, onFail, {
          destinationType: Camera.DestinationType.DATA_URL, 
          quality: 50
      });
  }
  </code></pre>
  
  <p>[UPDATE] Now I need to get the image as object convert it to byte array and upload it to Amazon S3 using REST (PUT) call.</p>