David Smith

David Smith

  • NA
  • 2k
  • 0

WebClient UploadFile Hanging Winform

Jan 29 2018 1:24 PM
The Upload file randomly and I dont know why. Can someone give me some assistance on the Upload function.
 
WebClient client = new WebClient();
client.Credentials = CredentialCache.DefaultCredentials;
client.UploadFile(ipaddr, "POST", @"C:\Temp\ImageShow\White--Dot.png" );
client.Dispose();

Answers (4)