title: Image convert to Base64
body: <pre><code>&lt;input type="file" id="asd"/&gt;
  </code></pre>
  
  <p>I would like to get the image in <strong>base64</strong> once the user chose that (before submitting the form)</p>
  
  <p>Something like :</p>
  
  <pre><code>$(input).on('change',function(){
    var data = $(this).val().base64file(); // it is not a plugin is just an example
    alert(data);
  });
  </code></pre>
  
  <p>I read about File API and other stuffs, I would like a simple and cross-browsers solution (IE6/IE7 excluded obviously)</p>
  
  <p>Any help appreciated thanks.</p>