On 05/29/2011 07:03 PM, ~ paPus ~ wrote:
> Hello Lukas! :)
>
> In case you need an almost-cross-browser implementation of the Base64
> encoding for Data URIs for downloading generated content, I've found
> one that works in the newest Firefox, Chrome and Opera (no IE9). It's
> not a standard, but since browsers use it internally anyway, it is
> probably easier and shorter than including a Base64 library.
>
> The functions:
>
https://developer.mozilla.org/En/DOM/Window.btoa> or the lib:
>
http://goo.gl/TjtnB>
> and a HTML test file if you want to test it in a browser:
>
http://pastie.org/1989563>
> Lőrinc
Hi Lőrinc,
Thanks for the tip. Very useful indeed.
Lukas