Hey guys,
I have a image byte[] that I want display on my asp:image control. I don't want to point the ImageUrl to another page to display my image. I know this works but I run into a new problem if I did that. For example storing the byte[] image into a session and have the imagepage.aspx or whatever to retrive the session and display the image. The problem with that is if the user search for another item that has an image and then click back to the old image, it will display the newimage and not the old.
But anyways, what I want to do is take this code:
byte[] myImgByte = (drow["picture"] != System.DBNull.Value) ? (byte[])drow["picture"] : null;
and place it in my asp:image control. how would I do that? I know I can't do this:
imgStructOrTable.ImageUrl = Convert.ToBase64String(myImgByte);
If I did that, it won't display correctly i ...
Go to the complete details ...