string photoPath = Path.Combine(InitInfo.AttachPath, datePath, guidPath, fileName);
HttpContext.Response.ContentType = "image/jpeg";
HttpContext.Response.TransmitFile(photoPath);
转载于:https://www.cnblogs.com/ZX-LMY/p/9449772.html