Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert arraybuffer to file javascript

const arrayBufferToFile = (buffer, filename) => {
  const blob = new Blob([buffer], { type: 'application/octet-stream' });
  return new File([blob], filename, { type: 'application/octet-stream' });
};
 
PREVIOUS NEXT
Tagged: #convert #arraybuffer #file #javascript
ADD COMMENT
Topic
Name
3+4 =