自己写的文件下载时候的问题。。。。
if ( Request.QueryString [ "action" ] == "download" )
{
LoadDown = new UpLoadAndGetBinaryFileSoapClient ( );
///得到二进制文件字节数组;
UpFileType type = DownLoadType ( Request.QueryString["type"].ToString());
byte [ ] binaryFile = LoadDown.LoadDownBinaryFile ( 1 , UpFileType.PhotoDesc_ImageFile , out filename );
Response.Buffer = true;
Response.ContentType = "application/octet-stream";
Response.AddHeader ( "Content-Disposition" , "attachment;filename=" + filename );
FileStream fs = new FileStream ( filename , FileMode.OpenOrCreate );
BinaryWriter bw = new BinaryWriter ( fs );
bw.Write ( binaryFile , 0 , binaryFile.Length );
bw.Close ( );
fs.Close ( );
this.Response.End ( );
}
主要代码~
用迅雷可以下载,但是用ie带的下载保存会出现:
Internet Exporer 无法下载downLoad.aspx(来自localhost)
Internet Exporer 无法打开该internet站点。请求的站点不可用,或找不到。请以后再试!
下载网络上的其他文件是可以的,是哪里的设置问题呢?
困扰了好几天了~
...全文
相关推荐
VIVADO2017.4FPGA烧写文件下载步骤.docx
利用VIVADO编译器进行烧写程序,既有烧写BIT文件也包括MCS文件。详细概括了烧写步骤等等,利用VIVADO编译器进行烧写程序,既有烧写BIT文件也包括MCS文件。详细概括了烧写步骤等等
关于sdk烧写elf文件问题
新建的是helloworld工程模板,生成elf文件后右键helloworld工程,选择Run As----Run Configuration,出现的错误是:An internal error occurred during: Launching hello_world_0 Debug .
魔王语言。。挺全的。。直接下载就行啊。。。挺全的。。直接下载就行啊。。。挺全的。。直接下载就行啊。。。
挺全的。。直接下载就行啊。。。挺全的。。直接下载就行啊。。。挺全的。。直接下载就行啊。。。挺全的。。直接下载就行啊。。。挺全的。。直接下载就行啊。。。挺全的。。直接下载就行啊。。。挺全的。。直接下载就行啊。。。
华为U1310 HTTP下载写文件问题
http.openInputStream().available(),华为机U1310永远为1,其他机型为实际值 解决:先建立Buff,读取数据
STM32单片机DAP下载器HEX文件烧写器,包含hex2bin转换器。
用于STM32单片机或者其他单片机使用DAP下载器时,可下载HEX烧录文件。方便在没有源代码的情况下使用。还含有1个hex2bin转换器。


