At the moment my nodejs service is doing this:
...
fs.writeFileSync('filelocation/data.xlsx', theData, 'binary');
reponse.sendFile('filelocation/data.xlsx');
reponse.download('filelocation/data.xlsx'); // I tried this one also
...
But now how do I download this from Angular front end using the HttpClient
? This does not work:
this.httpclient.get(url).subscribe(response => {
console.log(response); // Or whatever I need to do to download the file
});
I want the call to bring up the file explorer so that I can save the file. How do I get this working? If you need more info from me just let me know please.