Image convert to Base64

<input type="file" id="asd"/>

I would like to get the image in base64 once the user chose that (before submitting the form)

Something like :

$(input).on('change',function(){
  var data = $(this).val().base64file(); // it is not a plugin is just an example
  alert(data);
});

I read about File API and other stuffs, I would like a simple and cross-browsers solution (IE6/IE7 excluded obviously)

Any help appreciated thanks.

148 thoughts on “Image convert to Base64”

  1. Pingback: sildenafil 20 mg
  2. Pingback: www.gncedstore.com
  3. Pingback: sildenafil online
  4. Pingback: order cialis
  5. Pingback: cialis soft
  6. Pingback: viagra canada
  7. Pingback: generic viagra
  8. Pingback: purchase viagra
  9. Pingback: cheap viagra in us
  10. Pingback: viagra cialis
  11. Pingback: calis
  12. Pingback: viagra prices
  13. Pingback: otc viagra
  14. Pingback: doctor x viagra
  15. Pingback: viagra pills
  16. Pingback: sildenafil
  17. Pingback: walgreens viagra
  18. Pingback: viagra amazon

Leave a Comment