NodeJS: How to decode base64 encoded string back to binary? [duplicate]
As of Node.js v6.0.0 using the constructor method has been deprecated and the following method should instead be used to construct a new buffer from a base64 encoded string: var b64string = /* whatever */; var buf = Buffer.from(b64string, ‘base64’); // Ta-da For Node.js v5.11.1 and below Construct a new Buffer and pass ‘base64’ as … Read more