Answers for "in js how to read buffer data"

2

javascript string to buffer

var buf = Buffer.from('abc');

console.log(buf.toString());
Posted by: Guest on March-13-2021
0

get buffer from file javascript

const fileBuffer = Buffer.from(file, 'base64')
// OR
fs.readFile(file, function(err, buffer){})
Posted by: Guest on August-14-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language