I would like to convert a PDF to base64 and show on browser.
The problem is , the following code works for Firefox and Chrome
<iframe src="data:application/pdf;base64,encodeString></iframe>
But not in IE 9 + , suppose the user is using adobe reader plugin, are there any jquery plugin/workaround that allow embed a base64 pdf on iframe? thanks
Note: For IE and other browsers like Mozilla, Chrome this works for me
As you've noticed, Internet Explorer does not support the use of DATA URIs as the source of IFRAMEs. The only workaround for this is to return your PDF content from a HTTP/HTTPS or FTP URI and use that as the source of the IFRAME.