I'm trying to use WebClient.UploadFile to copy a file from a client to a web server. The file contains "binary" data for a 3rd party program. The 3rd party program is unable to read the web server's copy of the file. A quick comparison reveals that the original file size is 1,687 bytes but the copied file size is 1,879 bytes. Is there some attribute/property I can set so that an exact copy is made?
Here is my code:
public void upload (string pTargetURI, string pSourceFname)
WebClient lClient = new WebClient();
lClient.UploadFile (pTargetURI, "PUT", pSourceFname);