Answers for "window open blob"

0

window open blob

$http.post('/fetchBlobURL',{myParams}, {responseType: 'arraybuffer'})
   .success(function (data) {
       var file = new Blob([data], {type: 'application/pdf'});
       var fileURL = URL.createObjectURL(file);
       window.open(fileURL);
});
Posted by: Guest on April-23-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language