public ActionResult GetImage(int id) { string imagetype = "image/jpg"; var imageData = DMLObj.GetImageDataById(id, out imagetype); return(File(imageData, imagetype)); }