ビューに画像を表示しようとしています。
私は画像ヘルパーを書きました:
public static class Helpers
{
public static FileContentResult Image(this HtmlHelper htmlHelper,
byte[] imageData, string mimeType)
{
return new FileContentResult(imageData, mimeType);
}
}
myImage - バイト配列です。
<img src="@Html.Image(myImage, "image/jpeg")" />
しかし、私の画像は表示されません...
ソースコードを見ると、次のように表示されます。
<img src="System.Web.Mvc.FileContentResult">
誰でも?:)