1

I want to show a PDF in a MVC view. The PDF content comes in form of a base64 string from business layer code. For example

string imagestring="Some base64 string";          
Model.ImageData = imagestring;// A string property in model 

In the view I bind it as

<object data="data:application/pdf;base64,@System.Convert.ToBase64String(Model.ImageData)" 
type="application/pdf"></object>       

It works in chrome , displaying the PDF correctly, but in IE 11 it is not displaying. How can I make this code work for IE 11?

Ram
  • 3,092
  • 10
  • 40
  • 56

0 Answers0