AngularJS: IE Access Denied displaying PDF -


while trying display pdf blob on ie, receive access denied error.

html file

<object ng-show="{{content}}" data="{{content}}" type="application/pdf"></object> 

js file

$http.post('/api',{}, { responsetype: 'arraybuffer' })                     .success(function (response) {                         var file = new blob([response], { type: 'application/pdf' });                         var fileurl = window.url.createobjecturl(file);                         $scope.content = $sce.trustasresourceurl(fileurl);                     }); 

when using embed instead, acrobat pdf viewer unable view temporary file.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -