473,378 Members | 1,403 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,378 software developers and data experts.

File Download Times Out On Slow Connections

I wrote a newbee ASPX application which allows authenticated users to
download a fairly large file (10 MB). After authentication in a simple SQL
table and picking what file the user will get, I give the commands shown
below. This works pretty well for folks on broadband, but dial-up users
tend to have the download interrupted after about 8-10 minutes.

Are there any session time out parameters I've forgotten to set? If
multiple users hit this page at the same time and are downloading the same
file, will this ASPX solution be somehow compromised?

TIA

Harry
Response.Clear();

Response.ClearHeaders();

Response.ClearContent();
Response.AddHeader("content-disposition","attachment; filename=" + myfile);

Response.AppendHeader("Content-Length", size.ToString());

Response.ContentType = "application/octet-stream";

Response.WriteFile(filename);

Response.End();
Nov 18 '05 #1
3 1520
I don't think it can be anything to do with session, because you're just
talking about a single HTTP request.

is it perhaps your page execution timeout?

http://msdn.microsoft.com/library/de...imesection.asp
"Harry Whitehouse" <ha***@envmgr.com> wrote in message
news:Od**************@TK2MSFTNGP12.phx.gbl...
I wrote a newbee ASPX application which allows authenticated users to
download a fairly large file (10 MB). After authentication in a simple SQL table and picking what file the user will get, I give the commands shown
below. This works pretty well for folks on broadband, but dial-up users
tend to have the download interrupted after about 8-10 minutes.

Are there any session time out parameters I've forgotten to set? If
multiple users hit this page at the same time and are downloading the same
file, will this ASPX solution be somehow compromised?

TIA

Harry
Response.Clear();

Response.ClearHeaders();

Response.ClearContent();
Response.AddHeader("content-disposition","attachment; filename=" + myfile);
Response.AppendHeader("Content-Length", size.ToString());

Response.ContentType = "application/octet-stream";

Response.WriteFile(filename);

Response.End();

Nov 18 '05 #2
Andy -- Thanks for this hint! That page also linked to an article about
downloading large files which I also applied to my application:

http://support.microsoft.com/?id=812406

Best

Harry
Nov 18 '05 #3
"Harry Whitehouse" <ha***@envmgr.com> wrote in message news:<u6**************@TK2MSFTNGP11.phx.gbl>...
Andy -- Thanks for this hint! That page also linked to an article about
downloading large files which I also applied to my application:

http://support.microsoft.com/?id=812406

hey thanks for that link, That's a problem that I could well hit in
some work I'm doing.

I have to say that just sucks big time - providing a special API to
send a file and then implementing it so it reads the whole file into
memory - D'oh!


Best

Harry

Nov 18 '05 #4

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

Similar topics

13
by: Ken | last post by:
How do I download files from the internet server to my computer? How do I tell the script the correct hard drive folder on my computer to copy the files to? After connecting to the internet...
0
by: Andrew Dowding | last post by:
Hi Everybody, I have been looking at problems with my Windows Forms C# application and it's little Jet 4 (Access) database for the last few days. The Windows Forms app implements a facade and...
2
by: Skwerl | last post by:
We just installed a new SAN from Sun and need to migrate several terrabytes over to it from our Windows servers. We've found that drag-and-drop copying files using Explorer is going to be very...
22
by: petermichaux | last post by:
Hi, I'm curious about server load and download time if I use one big javascript file or break it into several smaller ones. Which is better? (Please think of this as the first time the scripts...
8
by: rdemyan via AccessMonster.com | last post by:
Anyone have any ideas on how to determine when the back-end file (containing only tables) has been updated with new data. The date/time of the file won't work because it gets updated to the...
2
by: Mike Kober | last post by:
I am having issues with the File Upload control for sending files to the server via HTTP. The speed of the upload is often between 20kbs and 40kbs. If I use the LAN at work to the server, it...
35
by: keerthyragavendran | last post by:
hi i'm downloading a single file using multiple threads... how can i specify a particular range of bytes alone from a single large file... for example say if i need only bytes ranging from...
4
by: Vlad | last post by:
I am having problems using the file.create method within a function that is called when looping through an array of filepaths. If I call my function with a hardcoded file path --C:\Temp.txt the...
4
by: Roberto Mora | last post by:
I have not done programming in a very long time and what is worst, I never learned VB. Although my job does not require this knowledge, I cam across a problem that although it seemed simple it has...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.