I've seen an answer to this in MVC3 "Displaying database image (bytes[]) in Razor/MVC3", but it end using two trips.
Is there an improved way in MVC4/5 using razor? Will WebImage help. I'm learning but a lot of this is over my head
The previous questioner made this observation, I echo it.
" I've yet to see an example of the image being taken from the model/viewmodel and displayed (except my answer using TempData). You'd think it would be a common requirement, but either it's so simple no-one asks or it's so difficult no-one bothers."
My images are small bargraphs.
So in my view the collection is passed in the Model.Lots
@foreach (var item in Model.Lots)
{ <tr>
<td>
@item.LotName
</td>
<td>
// code here to take @item.TaskImage (a byte array) and show image
</td>