Response.AddHeader("Content-Length", file.Length.ToString()); 这行去掉!Response.ContentType = "application/octet-stream";
改成
Response.ContentType = "application/x-msdownload";
Response.WriteFile(file.FullName);
改成
Response.BinaryWrite(file的字节流); 嘿嘿,这里你想点办法搞它的stream吧
改成
Response.ContentType = "application/x-msdownload";
Response.WriteFile(file.FullName);
改成
Response.BinaryWrite(file的字节流); 嘿嘿,这里你想点办法搞它的stream吧
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货