[quote=引用 3 楼 qq_27325201 的回复:] HttpContext.Current.Response.ContentType = "application/octet-stream"; HttpContext.Current.Response.AddHeader("Content-Disposition", "attachement;filename=" + HttpUtility.UrlEncode(Path.GetFileN ame(filePath))); HttpContext.Current.Response.AddHeader("Content-Length", dataToRead.ToString()); 这样吗
HttpContext.Current.Response.ContentType = "application/octet-stream"; HttpContext.Current.Response.AddHeader("Content-Disposition", "attachement;filename=" + HttpUtility.UrlEncode(Path.GetFileN ame(filePath))); HttpContext.Current.Response.AddHeader("Content-Length", dataToRead.ToString()); 这样吗
110,529
社区成员
642,571
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧