2

Is there any way how to encode a png/jpeg/gif image to base64 using Javascript (can't use canvas toDataURL)? Thank you.

jack moore
  • 1,335
  • 2
  • 9
  • 5
  • You might look here: [#246801](http://stackoverflow.com/questions/246801/how-can-you-encode-to-base64-using-javascript) – drudge Oct 26 '10 at 01:03

1 Answers1

2

If you can't use the canvas API, then you can't.

Not unless it does a loopback with the server which returns the base64 encoded image.

alex
  • 460,746
  • 196
  • 858
  • 974