blob url in ie is not working

5.7k views Asked by At

I want to dispaly PDF in IE10 or IE11 using blob url.

These I used to construct Blob URLs

var url = URL.createObjectURL(blob)

Blob url created using createObjectURL() is not able to generate proper blob url in IE and firefox. But works in Chrome.

But Adobe has removed PDF plugin support for chrome.

Is there any other way to display the blob url in other than createObjectURL method?

1

There are 1 answers

0
Kevin M On

Look at this link. They even have a viewer that can render blobs.

Note: for IE to work wrap the blob url in encodeURIComponent() before passing it to the viewer such as this:

'http://viewer.html?file=' + encodeURIComponent(blobUrl)