Created
April 29, 2014 02:12
-
-
Save TimLang/11389179 to your computer and use it in GitHub Desktop.
nodejs image base64 encoding and decoding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var encoded = new Buffer(imagedata, 'binary').toString('base64'); | |
| var decoded = new Buffer(encoded, 'base64').toString('binary'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment