I'm using the fs module in my electron app to read file content from path
ipcMain.on('fileData', (event, data) => {
data.forEach( (file) => {
const stream = fs.createReadStream(file)
stream.on('data', (buffer) => {
console.log(buffer)
})
})
})
I'm able to open the files but I get a buffer. what I want is to create blob from the files to do some process on them. How I can achive this in electron?