在ASP.net中输出其他格式的文件
Response.ContentType="application/octet-stream";
Response.Charset="GB2312" ;
// Response.AddHeader("Content-Disposition", "inline; filename="+reader["BName"].ToString() +reader["exeName"].ToString() );
Response.AddHeader( "Content-Disposition","attachment;filename="+HttpUtility.UrlEncode( reader["Name"].ToString() ,System.Text.Encoding.UTF8) );
Response.BinaryWrite((Byte[])reader["content"]);
Response.End();
Response.Charset="GB2312" ;
// Response.AddHeader("Content-Disposition", "inline; filename="+reader["BName"].ToString() +reader["exeName"].ToString() );
Response.AddHeader( "Content-Disposition","attachment;filename="+HttpUtility.UrlEncode( reader["Name"].ToString() ,System.Text.Encoding.UTF8) );
Response.BinaryWrite((Byte[])reader["content"]);
Response.End();