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);
}
Are there any code examples left?
New code examples in category Javascript