Hi,
I'm having problems with uploading files using binary transfer type.
Connecting and changing dir happens as supposed to, however aparently I do not get the transfer type set correctly or somthing.
Before attempting to use binary i got the following error when trying to upload a bmp file:
--------------------
Found a high surrogate char without a following low surrogate at index: 252.
The input may not be in this encoding, or may not contain valid Unicode (UTF-16) characters. Parameter name: chars
--------------------
I assumed that this was due to the binary nature of the file and attempted to switch to binary mode through:
--------------------
objFTPClient.TransferType = FTPTransferType.BINARY;
--------------------
I use FTPClient and not FTPConnection by the way, should I be using FTPConnection instead and if so, why?
Anyway, after I did this and then use put() I get:
--------------------
Unable to write data to the transport connection.
--------------------
I've searched the forum and seen examples using setType() but I cannot find this function in any of the namespaces nor can I find it in the source files included with the download.
It's the free version I'm using by the way since I wanna make sure this thing can do when I need before I buy it.
If anyone is able to illuminate me a bit on this topic it would be much appreciated.
/Aidal