Homelab, Linux & ABAP (~˘▾˘)~
 

[nodejs] base64 to buffer and vice versa

const myBase64File = "JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3....."

const buffer = Buffer.from(myBase64File, "base64")
const base64 = buffer.toString("base64")

Leave a Reply

Your email address will not be published.