title: MVC: Displaying an Image in a form with other form data from database
body: <p>The question as to how to display an image, stored as an image in the database and as a byte array in code, has been answered several times (e.g., <a href="https://stackoverflow.com/questions/880515/display-image-from-database-in-asp-mvc">Display image from database in asp mvc</a>), but what if you want to display the image in the context of a form.  That is, I have an object that has several fields, one of which is an image.  I have got it working where the user can upload the image and it gets stored as part of the save process, along with the rest of the object fields.  But how do I send it back out (and ideally display it) with the rest of the data to populate the Edit form?  All of the solutions I've seen have some sort of ShowImage action that takes an Id and retrieves the image and streams it to the response.  However, I don't see how this works in this scenario.  </p>
  
  <p>The only thing I can think of is to populate the form and then use jquery to retrieve the image and display it in the form, but that's a lot of extra traffic that seems unnecessary.</p>
  
  <p>Anyone know how to do this?</p>
  
  <p>Thanks.</p>