I assume the image in a byte[] array already. The rest is simple, return a FileResult from your MVC action and take advantage of the Controller.File() method as illustrated below
public class FileController : Controller
{
public ActionResult Index()
{
return View();
}
// GET: GetTele
public FileResult GetTele()
{
byte[] fileBuffer = System.IO.File.ReadAllBytes(Server.MapPath("~/images/tele.jpg"));
return File(fileBuffer, "image/jpg");
}
}
The Index view that displays the image.
@{
ViewBag.Title = "Index";
}
<h2>Index</h2>
<div>
<img src="/File/GetTele" alt="Telecaster" />
</div>