TypeError Base64 is not a function when using Buffer.from in Node 4.3

后端 未结 1 942
-上瘾入骨i
-上瘾入骨i 2021-01-19 15:31

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

相关标签:
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

    0 讨论(0)
提交回复
热议问题