I am unable to preview the pdf file using blob. I am able to download but not able preview.
Some one please help me how to preview pdf file/content using blob.
From WebAPI I am receiving response content and converting it to blob (like response.blob())
let blobResponse = response.blob();
let fileUrl = (window.URL || window.webkitURL).createObjectURL(blobResponse);
This fileUrl I am opening in iframe. And with iframe & chrome browser able to preview the pdf content. But in IE11 not able to preview.
I have tried with readAsDataURL() also but no luck. This readAsDataURL() method returning the url but If I'm opening the url in browser then it is showing blank screen.
Please help me how to preview the pdf content in iframe/any other tag. Or any other solution.
Thanks In Advance
Kranthi Kumar Uppula