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

python - argument must be rect style object - Pygame -

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

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