For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > April 2004 > Pb when downloading huge files









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Pb when downloading huge files
JMG

2004-04-30, 5:12 am

Hi everybody,

When the file size is larger than about 16 Mo, the download stops without
any error message.

private void download (string strFullName, string strName)
{
Response.Clear ();

Response.Expires = -1000;
Response.AddHeader("content-disposition", "attachment; filename=" +
strName);
Response.ContentType = "Application/octet-stream";
Response.Flush ();
Response.WriteFile(strFullName);
Response.End();
}

In my web.config:
<httpRuntime executionTimeout="90000" maxRequestLength="200000"/>

Help please !!!

Thanks in advance.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com