Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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);
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #window #open #blob
ADD COMMENT
Topic
Name
6+7 =