02-12-2009 05:34 AM
Hi,
I am having this problem, while trying to upload a waveform to my test ftp server (filezilla, same pc: 127.0.0.1) :
"Can't write data: 0x80070057", that is E_INVALIDARG.
This happens just after execution of:
HRESULT status = DS_Open( URL, 4, DSCallback, &DataToSend, &DSHandle);
The server sees the user connecting, gets the pw all right, but then it disconnects straight away.
This doesn't happen if the second parameter is 2, that is reading seems possible.
My question is:
can i write to ftp through datasocket (with DS_Open( url, 4, ...) ? Or is only reading allowed?
If the answer is that writing is possible, then i suspect i am getting wrong some ftp settings (not an expert).
Any suggestion very welcome.
Thanks a lot!
02-13-2009 08:29 AM
Hi,
writing to FTP should be possible. I suggest you to read this document: I hope it will be of help!
Bye!
Licia
02-13-2009 09:22 AM
Thanks for the tip.
I had seen that document, but it didnt help unfortunately.
Maybe it's because I am running an old version (v5.5), that does not support DS_OpenEx().
Anyway now the situation has improved a little: the DS_Open() in WriteAutoUpdate mode can connect, create an empty file (found in the URL: "ftp://127.0.0.1/DS_test.txt[text]") and automatically disconnect. It sends ftp commands on its own (TYPE I, PORT xxxxxxxxxx, STOR DS_test.txt), the last of which creates the file.
Unfortunately DS_SetDataValue() afterwards has no effect whatsoever...
So the file is there but always empty!
Any ideas?
Thanks