Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get buffer from file javascript

const fileBuffer = Buffer.from(file, 'base64')
// OR
fs.readFile(file, function(err, buffer){})
 
PREVIOUS NEXT
Tagged: #buffer #file #javascript
ADD COMMENT
Topic
Name
7+5 =