I'm facing the folowing problem:
I have a very simple ASP (not aspx) page that is used to dowload binary
files.
//================================================== ========
<%@ Language=JavaScript %>
<%
function GetBinaryFile( strFilePath )
{
var oStream;
oStream = Server.CreateObject("ADODB.Stream");
oStream.Open();
oStream.Type = 1; // 1 = Binary
oStream.LoadFromFile(strFilePath) // Retreive binary data from the file
return oStream.read //Return the binary data to the caller
}
var file2Return = "file.bin";
Response.Clear();
Response.ContentType = "binary/octet-stream";
Response.AddHeader("Content-Disposition","attachment;filename="+file2Return); var fileLocation = Server.MapPath(file2Return); Response.BinaryWrite(GetBinaryFile(fileLocation)); %>//================================================== ========When the file to be dowloaded is more than 20 MB, the download fails.Previously, there was a limit at 4MB, but I found a setting responsible forthat(AspBufferingLimit). I've changed that to 100MB, but it helped only forfilessmaller than 20MB.What else is responsible for the constraint ??I'm running IIS 6 (Win2003 Server).The problem DOES NOT exist with IIS 5.1 (XP Pro) Please help Micha³ Januszczyk