Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

electron save blob image to disk

const fs = require('fs')

async function saveBlobToFile(blob) {
  let fileData = new Int8Array(await blob.arrayBuffer());
  fs.writeFileSync("filepath.png", fileData);
}
 
PREVIOUS NEXT
Tagged: #electron #save #blob #image #disk
ADD COMMENT
Topic
Name
5+5 =