i'm trying to display an image in my view.
i've written an Image helper:
public static class Helpers
{
public static FileContentResult Image(this HtmlHelper htmlHelper,
byte[] imageData, string mimeType)
{
return new FileContentResult(imageData, mimeType);
}
}
myImage - is a byte array.
<img src="@Html.Image(myImage, "image/jpeg")" />
but my image is not displayed...
when i look at the source code all i see is:
<img src="System.Web.Mvc.FileContentResult">
anyone? :)