GetClientUploadFileDetails_Result img = dataContext.GetClientUploadFileDetails(HttpContext.Current.User.Identity.Name, imageID).First(); HttpContext.Current.Response.Clear(); HttpContext.Current.Response.AddHeader("content-disposition", string.Format("inline; filename=\"{0}\"", img.Logo_name)); HttpContext.Current.Response.ContentType = img.Mimetype; if (HttpContext.Current.Response.IsClientConnected) HttpContext.Current.Response.BinaryWrite(img.ImageData);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)