I’m using ASP.NET MVC and have a model which has an image (byte array) in one of the fields. I’m trying to output this image into the src attribute of the img tag. I’m looking to do something like <img src='<%= Model.VenueImage %>'>. How can I do this?
I’m using ASP.NET MVC and have a model which has an image (byte array)
Share
Maybe Inline Images with Data URLs idea?
and then somewhere in the page:
AFAIK this will work for Opera 7.2+, Firefox, Safari, Netscape, Mozilla and IE8+ (IE8 up to 32kb).
For earlier version of IE there is a workaround – MHTML.
The example how to do it is here.