This code below produces only a empty image tag when it runs?
Why can't I see the .pdf file. Or should I need something other than
ImageUrl to show the .pdf file. I want to show the .pdf in image tag or ImageUrl for OUTPUT? Just a hint that I have the binary data in the Database for .pdf file which is converted into bytes down below in code.
Should Convert option of base64 will help me show the .pdf file in
ImageUrl? Please help?
byte[] bytes = (byte[])reader["Data"];
string base64String = Convert.ToBase64String(bytes, 0, bytes.Length);
Image i = this.Image1;
i.ImageUrl = base64String;