473,221 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,221 software developers and data experts.

File download size limit

I have a site that allows a person to log in and get a list of files to
download for them. If the file size is under 65MB then everything is fine,
they click the download button and the save box pops up. But if the file is
larger than 65MB the page sits and processes until it times out. I can't
figure it out becaus a 64MB file loads immediately for download while one
slightly larger hangs up.

Any assistance on this will be greatly appreciated. Tim
Jun 30 '06 #1
4 8591

"tjfdownsouth" <tj**********@discussions.microsoft.comwrote in message
news:0E**********************************@microsof t.com...
I have a site that allows a person to log in and get a list of files to
download for them. If the file size is under 65MB then everything is
fine,
they click the download button and the save box pops up. But if the file
is
larger than 65MB the page sits and processes until it times out. I can't
figure it out becaus a 64MB file loads immediately for download while one
slightly larger hangs up.

Any assistance on this will be greatly appreciated. Tim
Is the link to the file supplied a direct URL for the file in a web folder
or is it a link to an ASP page which streams the file content to the client.

If the latter then it may be a buffer size limit. You could increase the
buffer limit but the real solution would be to code the ASP to allow the
file to be streamed properly rather than being buffered. This involves two
things: make sure Response.Buffer = False and don't use BinaryWrite to send
the whole contents of the file at once.

Jul 3 '06 #2
This is the code I am using to download the file when a user click the
download button:

FileInfo targetFile = new FileInfo(filePath);
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename=" +
targetFile.Name);
Response.AddHeader("Content_Length", targetFile.Length.ToString());
Response.ContentType = "application/octet-stream";
Response.WriteFile(targetFile.FullName);
Response.End();

"Anthony Jones" wrote:
>
"tjfdownsouth" <tj**********@discussions.microsoft.comwrote in message
news:0E**********************************@microsof t.com...
I have a site that allows a person to log in and get a list of files to
download for them. If the file size is under 65MB then everything is
fine,
they click the download button and the save box pops up. But if the file
is
larger than 65MB the page sits and processes until it times out. I can't
figure it out becaus a 64MB file loads immediately for download while one
slightly larger hangs up.

Any assistance on this will be greatly appreciated. Tim

Is the link to the file supplied a direct URL for the file in a web folder
or is it a link to an ASP page which streams the file content to the client.

If the latter then it may be a buffer size limit. You could increase the
buffer limit but the real solution would be to code the ASP to allow the
file to be streamed properly rather than being buffered. This involves two
things: make sure Response.Buffer = False and don't use BinaryWrite to send
the whole contents of the file at once.

Jul 6 '06 #3

"tjfdownsouth" <tj**********@discussions.microsoft.comwrote in message
news:4B**********************************@microsof t.com...
This is the code I am using to download the file when a user click the
download button:

FileInfo targetFile = new FileInfo(filePath);
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename="
+
targetFile.Name);
Response.AddHeader("Content_Length",
targetFile.Length.ToString());
Response.ContentType = "application/octet-stream";
Response.WriteFile(targetFile.FullName);
Response.End();
WriteFile is a member of HttpResponse in ASP.NET. You've posted to a
Classic ASP NG.

However it does sound like you are exceeding the server buffer. Replace
Response.Clear() with Response.Buffer = False.
"Anthony Jones" wrote:

"tjfdownsouth" <tj**********@discussions.microsoft.comwrote in message
news:0E**********************************@microsof t.com...
I have a site that allows a person to log in and get a list of files
to
download for them. If the file size is under 65MB then everything is
fine,
they click the download button and the save box pops up. But if the
file
is
larger than 65MB the page sits and processes until it times out. I
can't
figure it out becaus a 64MB file loads immediately for download while
one
slightly larger hangs up.
>
Any assistance on this will be greatly appreciated. Tim
Is the link to the file supplied a direct URL for the file in a web
folder
or is it a link to an ASP page which streams the file content to the
client.

If the latter then it may be a buffer size limit. You could increase
the
buffer limit but the real solution would be to code the ASP to allow the
file to be streamed properly rather than being buffered. This involves
two
things: make sure Response.Buffer = False and don't use BinaryWrite to
send
the whole contents of the file at once.



Jul 6 '06 #4
Anthony I tried your suggestion and it is still having trouble, it is not
having an error but it still does not operate the same. If the file is less
than 65MB it immediately pops up a dialog if it is more it just sits there
processing. Thanks for your help I will try in the .net forum also.

Tim

"Anthony Jones" wrote:
>
"tjfdownsouth" <tj**********@discussions.microsoft.comwrote in message
news:4B**********************************@microsof t.com...
This is the code I am using to download the file when a user click the
download button:

FileInfo targetFile = new FileInfo(filePath);
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename="
+
targetFile.Name);
Response.AddHeader("Content_Length",
targetFile.Length.ToString());
Response.ContentType = "application/octet-stream";
Response.WriteFile(targetFile.FullName);
Response.End();

WriteFile is a member of HttpResponse in ASP.NET. You've posted to a
Classic ASP NG.

However it does sound like you are exceeding the server buffer. Replace
Response.Clear() with Response.Buffer = False.
"Anthony Jones" wrote:
>
"tjfdownsouth" <tj**********@discussions.microsoft.comwrote in message
news:0E**********************************@microsof t.com...
I have a site that allows a person to log in and get a list of files
to
download for them. If the file size is under 65MB then everything is
fine,
they click the download button and the save box pops up. But if the
file
is
larger than 65MB the page sits and processes until it times out. I
can't
figure it out becaus a 64MB file loads immediately for download while
one
slightly larger hangs up.

Any assistance on this will be greatly appreciated. Tim
>
Is the link to the file supplied a direct URL for the file in a web
folder
or is it a link to an ASP page which streams the file content to the
client.
>
If the latter then it may be a buffer size limit. You could increase
the
buffer limit but the real solution would be to code the ASP to allow the
file to be streamed properly rather than being buffered. This involves
two
things: make sure Response.Buffer = False and don't use BinaryWrite to
send
the whole contents of the file at once.
>
>
>
>


Jul 8 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: lvcha.gouqizi | last post by:
I embed an applet in my php script which has a parameter providing an input file for the jar. Does this file has size limit? The code is as follows: <APPLET ARCHIVE="myapplet.jar" WIDTH=372...
0
by: Antonio.P | last post by:
Hi to all. I am using an html form to upload files to zope. I'd like to limit the max upload size to 3Mb but I haven't found anything on the manual about it. Is it possible to put this limit? ...
2
by: steve | last post by:
I am setting up a huge database in mysql, and I get the above error in Linux. I believe it is related to the size of one of my tables, which is 4,294,966,772 bytes in size. Can someone help. How...
1
by: Vicky | last post by:
i am uploading a fiel in asp.net to web server. WEll it works fine for files having size of around 1 - 2 mb but as i upload file of 5-6 mb it does not work. Is there any limit of file size and how...
2
by: Abubakar | last post by:
Hi, I want to know the size of a given file on the server before downloading it. Say I'v a zip file whose url I know, now I want to know what size it is on the server. Thanx, Abubakar.
2
by: tjfdownsouth | last post by:
I have a site that allows a person to log in and get a list of files to download for them. If the file size is under 65MB then everything is fine, they click the download button and the save box...
9
by: eastcoastguyz | last post by:
I wrote a simple program to continue to create a very large file (on purpose), and even though there is plenty of disk space on that device the program aborted with the error message "File Size...
14
by: S N | last post by:
I am using the following code to hide the download url of files on my website. The code uses Response.Binarywrite to send file to the client. Kindly indicate the maximum size of the file that can be...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.