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
Here is a LIVE DEMO of atob() and btoa() JS built in functions:
atob()
btoa()
Some text to decode U29tZSB0ZXh0IHRvIGRlY29kZQ==