Wednesday, 14 April 2021

How can you encode a string to Base64 in JavaScript?

I have a PHP script that can encode a PNG image to a Base64 string.

I'd like to do the same thing using JavaScript. I know how to open files, but I'm not sure how to do the encoding. I'm not used to working with binary data.



from How can you encode a string to Base64 in JavaScript?

No comments:

Post a Comment