I'm struggling with this one so any ideas at all are welcome.
I've written some J2ME code for uploading files to an ftp server. I do all the logging in, navigating directories etc then try to send my data. I've been running this on a couple of free ftp servers on the net with no probs. The live system has now been set up and I can't send data. I go through all the normal steps but it fails at the last hurdle:
TYPE I -> Changes to binary mode correctly
PASV -> executed and returns the new connection details for transfer
STOR -> also executes and tells me it is ready to receive a file (Response 125)
I then send the data, close the output stream to the server and wait for a response ... nothing! The server doesn't give me a 226 transfer complete for some reason. If I don't look for this and try to make another file transfer, I get an error response that the server can't complete the request in its current state, it says to use ABOR to cancel the operation (Which I presume is the file transfer??).
To complicate matters, using FTP at the dos level works fine and gets 226 transfer complete.
What am I doing wrong which makes this specific server not work?! Am I right to think that you complete the file transfer by just closing the output stream?