Measure Progress of Upload with WepRequest

  • Thread starter Thread starter Christof Nordiek
  • Start date Start date
C

Christof Nordiek

Hi,

I'm using a WebRequest to post data to a Website. The data contains a
possibly large file.
How can I measure the progress of the upload for showibng a ProgressBar.

thanks
 
Hi Mike,

thanks for your respond.
It doesn't work, the Event is only invoked at the end of the transmission.
 
Actually that's exactly what i did.
The first time the event is fired, it says all bytes are allready sent. But
from Networkmonitor k see, that only then
the transmission of data starts.
 
That's because you are looking at two different levels, one is the
application level other is the network level. The upper level fires when the
user data buffer is transferred to the lower level buffers (OS and Driver
levels) network monitor shows when the data effectively gets passed to the
driver, which doesn't necessarely means that even then the data is passed to
the network!.

Willy.


| Actually that's exactly what i did.
| The first time the event is fired, it says all bytes are allready sent.
But
| from Networkmonitor k see, that only then
| the transmission of data starts.
|
| | > Sorry, you'll need to attach UploadProgressChanged. I didn't read your
| > post close enough the first time
| >
| > Mike
| > http://www.seeknsnatch.com
| >
| >
| > | >> Hi Mike,
| >>
| >> thanks for your respond.
| >> It doesn't work, the Event is only invoked at the end of the
| >> transmission.
| >>
| >> | >>> You'll need to attach a delegate to the DownloadProgressChange event
of
| >>> the WebClient class.
| >>>
| >>> Mike
| >>> http://www.seeknsnatch.com
| >>>
| >>> | >>>> Hi,
| >>>>
| >>>> I'm using a WebRequest to post data to a Website. The data contains a
| >>>> possibly large file.
| >>>> How can I measure the progress of the upload for showibng a
| >>>> ProgressBar.
| >>>>
| >>>> thanks
| >>>>
| >>>>
| >>>
| >>>
| >>
| >>
| >
| >
|
|
 
Hi Willy,

thanks for your answer,
but do you have any solution to the problem?
Is there any way I con measure on of the lower levels?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top