I've seen several tutorial explaining how to convert binary image into encode64 representations:
var image = new Buffer(bl.toString(), 'binary').toString('base64');
My question is, how to return this string representation, back to it's buffer's binary data.
new Buffer
is deprecatedFrom Binary to base64:
From base64 to binary:
This question has some helpful info: How to do Base64 encoding in node.js?
The Buffer class itself does the conversion: