473,378 Members | 1,507 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.

Measure Progress of Upload with WepRequest

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
Aug 15 '06 #1
6 1627
You'll need to attach a delegate to the DownloadProgressChange event of the
WebClient class.

Mike
http://www.seeknsnatch.com

"Christof Nordiek" <cn@nospam.dewrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...
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


Aug 15 '06 #2
Hi Mike,

thanks for your respond.
It doesn't work, the Event is only invoked at the end of the transmission.

"Michael" <in**@seeknsnatch.comschrieb im Newsbeitrag
news:44***********************@news.free.fr...
You'll need to attach a delegate to the DownloadProgressChange event of
the WebClient class.

Mike
http://www.seeknsnatch.com

"Christof Nordiek" <cn@nospam.dewrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...
>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



Aug 18 '06 #3
Sorry, you'll need to attach UploadProgressChanged. I didn't read your post
close enough the first time

Mike
http://www.seeknsnatch.com
"Christof Nordiek" <cn@nospam.dewrote in message
news:Ou**************@TK2MSFTNGP04.phx.gbl...
Hi Mike,

thanks for your respond.
It doesn't work, the Event is only invoked at the end of the transmission.

"Michael" <in**@seeknsnatch.comschrieb im Newsbeitrag
news:44***********************@news.free.fr...
>You'll need to attach a delegate to the DownloadProgressChange event of
the WebClient class.

Mike
http://www.seeknsnatch.com

"Christof Nordiek" <cn@nospam.dewrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl. ..
>>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




Aug 19 '06 #4
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.

"Michael" <in**@seeknsnatch.comschrieb im Newsbeitrag
news:44***********************@news.free.fr...
Sorry, you'll need to attach UploadProgressChanged. I didn't read your
post close enough the first time

Mike
http://www.seeknsnatch.com
"Christof Nordiek" <cn@nospam.dewrote in message
news:Ou**************@TK2MSFTNGP04.phx.gbl...1
>Hi Mike,

thanks for your respond.
It doesn't work, the Event is only invoked at the end of the
transmission.

"Michael" <in**@seeknsnatch.comschrieb im Newsbeitrag
news:44***********************@news.free.fr...
>>You'll need to attach a delegate to the DownloadProgressChange event of
the WebClient class.

Mike
http://www.seeknsnatch.com

"Christof Nordiek" <cn@nospam.dewrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl.. .
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




Aug 21 '06 #5
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.
"Christof Nordiek" <cn@nospam.dewrote in message
news:um****************@TK2MSFTNGP06.phx.gbl...
| 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.
|
| "Michael" <in**@seeknsnatch.comschrieb im Newsbeitrag
| news:44***********************@news.free.fr...
| Sorry, you'll need to attach UploadProgressChanged. I didn't read your
| post close enough the first time
| >
| Mike
| http://www.seeknsnatch.com
| >
| >
| "Christof Nordiek" <cn@nospam.dewrote in message
| news:Ou**************@TK2MSFTNGP04.phx.gbl...1
| >Hi Mike,
| >>
| >thanks for your respond.
| >It doesn't work, the Event is only invoked at the end of the
| >transmission.
| >>
| >"Michael" <in**@seeknsnatch.comschrieb im Newsbeitrag
| >news:44***********************@news.free.fr...
| >>You'll need to attach a delegate to the DownloadProgressChange event
of
| >>the WebClient class.
| >>>
| >>Mike
| >>http://www.seeknsnatch.com
| >>>
| >>"Christof Nordiek" <cn@nospam.dewrote in message
| >>news:%2******************@TK2MSFTNGP02.phx.gbl.. .
| >>>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
| >>>>
| >>>>
| >>>
| >>>
| >>
| >>
| >
| >
|
|
Aug 21 '06 #6
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?

"Willy Denoyette [MVP]" <wi*************@telenet.beschrieb im Newsbeitrag
news:eD**************@TK2MSFTNGP05.phx.gbl...
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.
"Christof Nordiek" <cn@nospam.dewrote in message
news:um****************@TK2MSFTNGP06.phx.gbl...
| 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.
|
| "Michael" <in**@seeknsnatch.comschrieb im Newsbeitrag
| news:44***********************@news.free.fr...
| Sorry, you'll need to attach UploadProgressChanged. I didn't read your
| post close enough the first time
| >
| Mike
| http://www.seeknsnatch.com
| >
| >
| "Christof Nordiek" <cn@nospam.dewrote in message
| news:Ou**************@TK2MSFTNGP04.phx.gbl...1
| >Hi Mike,
| >>
| >thanks for your respond.
| >It doesn't work, the Event is only invoked at the end of the
| >transmission.
| >>
| >"Michael" <in**@seeknsnatch.comschrieb im Newsbeitrag
| >news:44***********************@news.free.fr...
| >>You'll need to attach a delegate to the DownloadProgressChange event
of
| >>the WebClient class.
| >>>
| >>Mike
| >>http://www.seeknsnatch.com
| >>>
| >>"Christof Nordiek" <cn@nospam.dewrote in message
| >>news:%2******************@TK2MSFTNGP02.phx.gbl.. .
| >>>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
| >>>>
| >>>>
| >>>
| >>>
| >>
| >>
| >
| >
|
|


Aug 22 '06 #7

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

Similar topics

3
by: Gary O'Malley | last post by:
Everytime I download a file from the web I get a nice animated dialogue box that shows the size of the file, how much has been received and the approximate remaining time. It also gives the...
3
by: Brian Birtle | last post by:
**** A CHALLENGE TO THE GURUS - refute the statement "It's impossible to build a file upload progress meter using ASP.NET" **** First person to prove me wrong gets "All Time .NET Programming GOD"...
14
by: Todd Denlinger | last post by:
Ok, I know how to upload a file in asp.net using the <input type="file" runat="server"> control. What I don't know how to do is monitor the progress of the upload so that I can show the...
3
by: Tim::.. | last post by:
Can someone please, please tell me how I get a progress bar to work with a binary file upload! I have the following code that uploads files into an SQL Database using a Stored Procedure but I...
6
by: Marko Vuksanovic | last post by:
I am trying to implement a file upload progress indicator (doesn't have to be a progress bar) using atlas... I do realize that the indicator cannot be implemented using Update panel control, but is...
1
by: Marko Vuksanovic | last post by:
I used the following code for implementing a file upload progress indicator, using UpdateProgress Panel, though I have a problem that FileUpload.Has File always returns false. Any suggestions what...
4
by: halimunan | last post by:
Hello all, I have a question, how do i measure the download/upload speed... as if download rate, upload rate or kbps transfer rate. i want to do my own windows application using C# to measure the...
8
by: Paulo | last post by:
Hi, while the user is uploading a file, is possible to show a progress bar? Using VS 2005 Asp.net 2.0 C# Thanks!
0
by: Shaikh shahnawaz | last post by:
Hi, I have implement multiple file uploading progress bar with the help of flash and .net file is upload on my local machine but not working with server it's give error while uploading image on...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.