javascript - How to download multiple images from url in nodejs -
here code in express.js -
var writestream = fs.createwritestream('./uploads/streetview/images/' + image_name + '.jpg'); writestream.on('close', function() { console.log('file done'); }); request(g_url).pipe(writestream);
its working file few image urls. when there more 1000, images gets distorted or corrupted.
Comments
Post a Comment