Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nodejs fs writefile base64url

const fileContents = new Buffer(attachmentResponse.data.data, 'base64')
fs.writeFile(part.filename, fileContents, (err) => {
  if (err) return console.error(err)
  console.log('file saved to ', part.filename)
})
 
PREVIOUS NEXT
Tagged: #nodejs #fs #writefile
ADD COMMENT
Topic
Name
4+3 =