zipファイルをデータベースに保存する古いアプリケーションを継承しました。このファイルを取得する必要があります。Firefoxでは問題なく動作します。zipを開くことができ、その中の各ファイルは問題ありません。IE7で実行すると、次のエラーが発生します。
Internet Explorerは、ローカルホストからProductContentFormImage.aspxをダウンロードできません。
Internet Explorerは、このインターネットサイトを開くことができませんでした。リクエストされたサイトは利用できないか、見つかりません。後でもう一度やり直してください。
私は以下のコードを使用しています。
byte[] content = (byte[])Session["contentBinary"];
Response.ClearContent();
Response.ClearHeaders();
Response.Clear();
Response.Buffer = true;
Response.Expires = 0;
Response.ContentType = "application/zip";
Response.AddHeader("Content-Length", content.Length.ToString());
Response.AddHeader("Content-Disposition", "attachment; filename=content.zip");
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.BinaryWrite(content);
Response.End();