get buffer from file javascript

Solutions on MaxInterview for get buffer from file javascript by the best coders in the world

showing results for - "get buffer from file javascript"
Harvey
04 Nov 2020
1const fileBuffer = Buffer.from(file, 'base64')
2// OR
3fs.readFile(file, function(err, buffer){})