I am trying to get the file downloaded at the user browser.
I am using azure-storage SDK. Following is the express code. I can see the files being retrieved on the browser console. But it just is not prompting a download for the user.
app.get('/download', (req, res) => {
res.attachment(req.get('blobName'));
blobService.getBlobToStream(req.get('container'), req.get('blobName'), res, function (error, result, response) {
console.log(error);
console.log(result);
console.log(response);
});
});