title: Is it possible for a view to display a WebImage without saving it to a file first?
body: <p>I'm not really sure if I'm using the <code>WebImage</code> class correctly.</p>
  
  <p>I have a controller that pulls a photo and some related information (comments, upload date, file name) from the database. I want to return a partial view that contains this information, and display the image along with the extra info.</p>
  
  <p>So I created a new WebImage from the byte array, but how do I display it?</p>
  
  <p>According to <a href="http://msdn.microsoft.com/en-us/gg618480">this article</a> it should be pretty simple</p>
  
  <blockquote>
    <ol>
    <li><p>You need to work with Razor syntax and create a variable that will
    contain the image:<br>
    <code>@{ var myImage = WebImage("/Content/myImage.jpg") // Work with the image… }</code></p></li>
    <li><p>Then, in order to load the image in the page, you have to show the
    variable that contains the image inside an HTML <code>&lt;img/&gt;</code> tag:<br>
    <code>&lt;img src="@myImage"/&gt;</code></p></li>
    </ol>
  </blockquote>
  
  <p>Except that doesn't work, it just outputs <code>&lt;img src="System.Web.Helpers.WebImage"&gt;</code> and calling <code>.Write</code> doesn't help.</p>
  
  <p>Is there any way to do this or do I need to split up my action into two different actions, one to return the photo information and one to return the photo itself?</p>