| | |
Pause/Resume Upload in C#
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jan 2009
Posts: 8
Reputation:
Solved Threads: 0
Hello, I'm looking for a way to pause or resume an upload process via C#'s WebClient.
pseudocode:
Maybe something like..
any idea?
pseudocode:
C# Syntax (Toggle Plain Text)
WebClient Client = new WebClient(); Client.UploadFileAsync(new Uri("http://mysite.com/receiver.php"), "POST", "C:\MyFile.jpg");
Maybe something like..
C# Syntax (Toggle Plain Text)
Client.Pause();
any idea?
To truly pause an upload you should kill the connection. Another method would be to manually control sending the chunks of data and start sending a minimal amount of data so the transfer is not truly pause but is sending enough data to keep the connection alive. This isn't a straightforward task unless you use resumed uploading:
http://www.webdavsystem.com/client/p...sumable_upload
http://www.webdavsystem.com/client/p...sumable_upload
![]() |
Similar Threads
- How to pause timer control in visual Foxpro? (Legacy and Other Languages)
- Pause Execution of a vb.net application (VB.NET)
- how to do a basic system pause (Java)
- How to Pause or Resume Downloading (Windows tips 'n' tweaks)
Other Threads in the C# Forum
- Previous Thread: Converting an XML file to readable info
- Next Thread: Game question
| Thread Tools | Search this Thread |
.net access ado.net algorithm array barchart bitmap box broadcast button buttons c# check checkbox client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing editing enabled encryption enum event excel file files form format forms function gdi+ httpwebrequest image index input install java label list listbox listener load mandelbrot math mouseclick mysql operator path photoshop picturebox pixelinversion post print programming radians regex remote remoting resolved. richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer update user usercontrol validation view visualstudio webbrowser windows winforms wpf xml






