C#: Webclient Assigning Chunk size when using AsyncUploadData -


After

I am using Webclient to upload data to a server using Async calls,

  WebClient WebClient = new webclient (); WebClient.UploadDataAsync (Yuri, "Pt", Buffer, UserToken);  

I progressed to appropriate callback functions

  // Upload Date DatauploadProgress and DatauploadCompleted Events have attached webClient.UploadProgressChanged + = New UploadProgressChangedEventHandler (UploadProgressCallback); // upload date progress zero upload program callback (object sender, uploadpregraging angle, rgs e) {// magic goes here}  

I have to give a chunk / partial file upload size to get the callback function I am trying to be told at periodic times.

Note: I know that to read the bytes sent when calling the callback function, I read e. Bytescent can use , but it is not what I am trying to do.

You can not define the Chuck size, such as WebClient that Does not expose any property for the handle.

If you want to control the length of that pack, you will need to move your file through a custom code, that is,


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -