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

intermittent download using Stream.Read()

Hi there

I'm downloading data from a remote server to my local disk using
Stream.Read() and Stream.Write() (as previously suggested by Ken Tucker in
this group). By and large the download and local write operations occur
successfully, but frequently the data transfer is "intermittent", ie.
sometimes the connection to the server becomes idle and no data transfer
occurs over the wire. The code eventually resumes execution as if all the
data were downloaded. However, if I point IE to any website, say
www.microsoft.com, while that page is downloading the data transfer using
Stream.Read() resumes.

Any ideas as to the cause?

Best regards
Loane
Nov 21 '05 #1
2 1374
Hi,
Maybe this will help.
http://msdn.microsoft.com/library/de...un02282003.asp

Ken
-----------------------
"Loane Sharp" <lo********@hotmail.com> wrote in message
news:ux**************@TK2MSFTNGP12.phx.gbl...
Hi there

I'm downloading data from a remote server to my local disk using
Stream.Read() and Stream.Write() (as previously suggested by Ken Tucker in
this group). By and large the download and local write operations occur
successfully, but frequently the data transfer is "intermittent", ie.
sometimes the connection to the server becomes idle and no data transfer
occurs over the wire. The code eventually resumes execution as if all the
data were downloaded. However, if I point IE to any website, say
www.microsoft.com, while that page is downloading the data transfer using
Stream.Read() resumes.

Any ideas as to the cause?

Best regards
Loane

Nov 21 '05 #2
I e-mail Duncan 10 days ago about the BITS program. It won't really give the
user an easy way to show how to resume download or keep the download alive..
It also prints to around 35-40 pages.

There are 100's of articles/code exaples over the Internet far simpler that
the BITS application.

All the user needs to do is to check to see if the file exists, get its
length, remove that total from the filesize & that is the starting position
to resume from.

Two weeks ago, I wrote a small application for Symantec Antivirus 9
Corporate Intelligent Updater Virus Definitions, which uses resume, pause,
cancel etc. & it won't take you long to add the resume code

"Ken Tucker [MVP]" wrote:
Hi,
Maybe this will help.
http://msdn.microsoft.com/library/de...un02282003.asp

Ken
-----------------------
"Loane Sharp" <lo********@hotmail.com> wrote in message
news:ux**************@TK2MSFTNGP12.phx.gbl...
Hi there

I'm downloading data from a remote server to my local disk using
Stream.Read() and Stream.Write() (as previously suggested by Ken Tucker in
this group). By and large the download and local write operations occur
successfully, but frequently the data transfer is "intermittent", ie.
sometimes the connection to the server becomes idle and no data transfer
occurs over the wire. The code eventually resumes execution as if all the
data were downloaded. However, if I point IE to any website, say
www.microsoft.com, while that page is downloading the data transfer using
Stream.Read() resumes.

Any ideas as to the cause?

Best regards
Loane

Nov 21 '05 #3

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

Similar topics

5
by: Thomas Andersson | last post by:
Hi, I am trying to find a working solution for download of large files (400-800 MB)... But this seems almost impossible to find a working example. I have tried Response.Transmitfile, this...
9
by: Eddie J | last post by:
I'm getting an intermittent error when calling a .NET web service from a .NET console application. Both are using v.1.1.4322 of the framework. Any ideas on what could be causing this? It can...
5
by: Baren | last post by:
Hi! I am using impersonate="true" to upload and download files from a network share. I have created common users on both the webserver and the file server. The user has permission to the...
3
by: Lee Chapman | last post by:
Hi, I have a problem where my ASP.NET application occasionally generates a MissingFieldException exception. This unexpectedly happened on my development box, and so I was able to extract some...
2
by: STEVE.KING | last post by:
Greetings: I need to download an executable and some other binary files (a C++ DLL) from a virtual directory in my WinForms application. No-Touch Deployment manages my .NET code fine but...
0
by: Mark | last post by:
Hi - I'm using ASP.Net 1.1 with VS.Net 2003. I have a file upload/download web app - it uploads great, but my download function doesn't work for SWF files. If I type the complete path to them...
0
by: Mark | last post by:
Hi I have a file upload/download web app - it uploads great, but my download function doesn't work for SWF files. If I type the complete path to them into the browser, and run from there, it...
4
by: rony_16 | last post by:
Hi, I have a program that connects to a site With WebRequest and WebResponse . The response of this site is a file (csv file). The problem is that the file do not comes as a stream , hi is a part...
10
by: =?Utf-8?B?SnVhbg==?= | last post by:
Hi! I want to use ASP to download big files using ADODB.STREAM. It works very fine with files smaller than 80 MB. On the Webserver I can see that memory allocation and the process w3wp is...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.