string photoPath = Path.Combine(InitInfo.AttachPath, datePath, guidPath, fileName); HttpContext.Response.ContentType = "image/jpeg"; HttpContext.Response.TransmitFile(photoPath);