I\'m trying to provide a pdf download from within an angular 2 app...
this code works:
var reportPost = \'variable=lsdkjf\'; var xhr = new X
See here: https://stackoverflow.com/a/45666313/4420532
return this._http.get('/api/images/' + _id, {responseType: 'blob'}).map(blob => { var urlCreator = window.URL; return this._sanitizer.bypassSecurityTrustUrl(urlCreator.createObjectURL(blob)); })