Obtenha buffer do arquivo javascript
const fileBuffer = Buffer.from(file, 'base64')
// OR
fs.readFile(file, function(err, buffer){})
Undefined
const fileBuffer = Buffer.from(file, 'base64')
// OR
fs.readFile(file, function(err, buffer){})