Send the contents of a byte array to the server and return the response.
This method returns a boolean value. If the method succeeds, the return value is true. If the method fails, the return value is false. To get extended error information, check the value of the LastError property.
The PutData method transfers the data in a byte array and submits it to the server using the PUT command. This may be used to create a new file, replace the contents of an file which already exists, or a request to submit data to a service API.
If you are using this method to upload the contents of a file, check to make sure the service allows the use of the PUT command. Not all servers permit files to be created using this method, and some may require specific configuration changes be made to the server to support this functionality.
It may be required for the client authenticate itself by setting the UserName and Password properties prior to submitting the data.
This method will cause the current thread to block until the data transfer completes, a timeout occurs or the transfer is canceled. During the transfer, the OnProgress event will fire periodically, enabling the application to update any user interface objects such as a progress bar.