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

Implementing progressbar for large webservice transfers

I've got some code which uploads files from a client to a webservice
(using an byte array).

Anyone got a suggestion how to implement a progressbar indicating amount
of bytes that's been sent in the ongoing call to the webservice?

(I would prefer not to have to split up the files into 4kb chunks just
to be able to implement this progressbar.)
Feb 7 '06 #1
3 2580
Hi,

"John Nossluap" <no******@nodomain.com> wrote in message
news:O7****************@TK2MSFTNGP10.phx.gbl...
I've got some code which uploads files from a client to a webservice
(using an byte array).

Anyone got a suggestion how to implement a progressbar indicating amount
of bytes that's been sent in the ongoing call to the webservice?

(I would prefer not to have to split up the files into 4kb chunks just to
be able to implement this progressbar.)


Do you use a buffer to read the file into and later send this buffer to the
remote end , all this inside a cicle?
if so you could do it , just remember that you have to do this transfer in a
worker thread and invoke the event in the main thread.

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Feb 7 '06 #2
Ignacio Machin ( .NET/ C# MVP ) wrote:
Hi,

"John Nossluap" <no******@nodomain.com> wrote in message
news:O7****************@TK2MSFTNGP10.phx.gbl...
I've got some code which uploads files from a client to a webservice
(using an byte array).

Anyone got a suggestion how to implement a progressbar indicating amount
of bytes that's been sent in the ongoing call to the webservice?

(I would prefer not to have to split up the files into 4kb chunks just to
be able to implement this progressbar.)
Do you use a buffer to read the file into and later send this buffer to the
remote end , all this inside a cicle?


Yeah, I've copied the file in to a byte array and am providing this byte
array to the webmethod of the web service. Not sure what you mean by a
circle since I only make one call to the webservice.
if so you could do it , just remember that you have to do this transfer in a
worker thread and invoke the event in the main thread.


Ok, how :)? Rember I'm interested receiving information about the amount
of bytes that currently been sent during the ongoing call. Not just
receiving a notification when the async. call has completed.

Feb 8 '06 #3
Hi,


Yeah, I've copied the file in to a byte array and am providing this byte
array to the webmethod of the web service. Not sure what you mean by a
circle since I only make one call to the webservice.


A loop I meant, but if you are sending the entire file in a unique operation
you cannot use a progressbar, you will have to split it.
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Feb 8 '06 #4

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

Similar topics

8
by: needin4mation | last post by:
Please consider: foreach (ListViewItem item in listViewFiles.Items) { // Display the ProgressBar control. pBar1.Visible = true; // Set Minimum to 1 to represent the first file being copied....
4
by: Weston Weems | last post by:
I've got the simple problem where I'd like to transfer somewhat large files to my webserver via http/webservice/something like that. My question is what kinda limits have people been able to...
1
by: nobody | last post by:
Hi I'm currently developing a Windows application. At the start of the application I load several tables into datatables in a dataset. I also use a progressbar to show the user how much percent...
2
by: Yi | last post by:
Hi, I am implementing a scheduler that will fire a command every 15 or 30 minutes. I would like to use web service interface to control the timer (start, stop, etc). I think a workable solution is...
6
by: Sam | last post by:
Hi, I have to process a large data loading in my form. In order to give a feedback on the loading status, I'd like to display a progressbar in a popup, in the middle of the screen. How can I do...
3
by: edamron | last post by:
I am writing my first VB.Net program and have come across an interesting problem. My department generates large volumes of documents. By law we are required to keep the documents for a specific...
0
by: Willem_at_work | last post by:
Hi, I've got an application on a PDA that interacts with a webservice through a wireless connection. All data transfers work fine, untill i try to send a DataSet from the PDA to the...
6
by: Joseph Geretz | last post by:
I have the following class which I am serializing and passing back and forth between my Web Service application and the client. public class Token : SoapHeader { public string SID; public...
2
by: swatii | last post by:
What I am trying to figure out is how to display a progress bar when im performing a large task. This task will consist of reading records from a database, writing them to a text file, manipulating...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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
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...

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.