controller from database to file, return on web
// 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");
}
Comments
0 B
|👍
/👎