createReadStream pipe not working in electron 1.6. It was working for 1.3 version. But now when i updated the version of electron, it not working. Please refer the code below.
response.writeHead(200, {'Content-Type': 'video/mp4'});
var rs = fs.createReadStream(queryData.video);
rs.pipe(response);
response.end();
What's i am missing in the new version?
via Jay
No comments:
Post a Comment