<img src='@Url.Action("GetImage/${ID}", "Home")' alt = "${name} image" /> but it not reflecting to the controller,but if i put statically like <img src='@Url.Action("GetImage/1", "Home")' alt = "${name} image" />
public ActionResult GetImage(int id) { var imgquery = (from img in dbContext.Listdetails where img.ID == id select new { Image = img.Image }).FirstOrDefault(); { System.IO.MemoryStream outStream = new System.IO.MemoryStream(); byte[] Image = imgquery.Image; return File(Image, "Image/jpg"); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)