// Copy in controller // GET: Image public ActionResult Get(int id) { var egyfoto = db.Fenykepek.SingleOrDefault(f => f.FenykepId == id); return File(egyfoto.Kep, "image/jpeg"); }