Skip to content Skip to sidebar Skip to footer

Typeerror Base64 Is Not A Function When Using Buffer.from In Node 4.3

I am debugging a lambda function locally on Node 4.3 using the standard Amazon Machine Image (linux x64) When I run the program, I get an error in a function that is meant to decod

Solution 1:

I finally found an answer on Stack Overflow that answers this question.

NodeJS: How to decode base64 encoded string back to binary?

In node 5.3 & below, you need to use the buffer constructor (ie: new Buffer) instead of Buffer.from

Post a Comment for "Typeerror Base64 Is Not A Function When Using Buffer.from In Node 4.3"