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