title: Get data from file input in JQuery
body: <p>I actually have a file input and I would like to retrieve the Base64 data of the file.</p>
  
  <p>I tried:</p>
  
  <pre><code>$('input#myInput')[0].files[0] 
  </code></pre>
  
  <p>to retrieve the data. But it only provides the name, the length, the content type but not the data itself.</p>
  
  <p>I actually need these data to send them to Amazon S3</p>
  
  <p>I already test the API and when I send the data through html form with encode type "multipart/form-data" it works.</p>
  
  <p>I use this plugin : <a href="http://jasny.github.com/bootstrap/javascript.html#fileupload" rel="noreferrer">http://jasny.github.com/bootstrap/javascript.html#fileupload</a></p>
  
  <p>And this plugins gives me a preview of the picture and I retrieve data in the src attribute of the image preview. But when I send these data to S3 it does not work. I maybe need to encode the data like "multipart/form-data" but I don't know why.</p>
  
  <p>Is there a way to retrieve these data without using an html form?</p>