Closed yamizukin closed 6 years ago
I can't reproduce this, but i don't have your file either...
Can you please post a link to a pdf file that doesn't work in IE11?
@yamizukin
I think i have found the problem:
Stackoverflow with simular issue
The fix is simple, just remove the line breaks:
var base64String = "DYWxpYnJpL0Vu Y29kaW5nL1dpbkFuc2lFbmNvZGluZy9Gb250RGVz....."
if (window.navigator && window.navigator.msSaveOrOpenBlob) { // IE specific code base64String= base64String.replace(/\s/g, ''); } And to download:
download("data:application/pdf;base64," + base64String, "fileName", "application/pdf");
base64 should not contain newlines anyway.
Using base64 encoded content, I can download text and images. I can also download PDFs in chrome.
However, I'm getting an error when downloading the same PDF in Internet Explorer 11.
index.txt
How can I fix this?