Answers for "electron save blob image to disk"

0

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);
}
Posted by: Guest on January-15-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language