The PutData method transfers data from a local buffer and
stores it in a file on the server. Not all servers permit files to be
created using this method, and some may require that specific
configuration changes be made to the server in order to support this
functionality. Consult your server's technical reference
documentation to see if it supports the PUT command, and if so, what
must be done to enable it. It may be required that the client
authenticate itself by setting the UserName and
Password properties prior to uploading the data.
If the Buffer parameter is a String type, this method
presumes that it only contains text and will automatically convert it
from its native Unicode to ANSI. If the string contains binary data,
this process can corrupt the data and therefore should never be used.
To prevent this conversion and upload Unicode text to the server, you
should convert the string to a byte array using the StrConv
This method will cause the current thread to block until the file
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.