The simplest FTP example is in the sample repo that was pointed out by Brandon earlier. My bigger concern is are you sure you are using the latest snapshot? The problem you are describing is exactly what was reported earlier and was fixed with that issue
when I put test/ with localdirectory file:c:/test/out it seems creating a file with .writting and error on console saying test/\filename.xml . server replied 501 invalid file or file name
"test\" - is not working and not giving any error either. I tried most of the possible combinations but seems no result.
Just wanted to make sure do i need a file out bound to write the file or anything like that. I have tried only with ftp inbound and stderror for error channel.
I am stuck and dont have much time to finish this task so might go and use apache ftpclient directly.
Last edited by arungn; Dec 15th, 2010 at 03:22 AM.
Well one thing i noticed is that you using fileType=3. We only support binary (2) and ascii (0) for now, so I am not sure if that causes the issue.
Also
What is your FTP server and what platform it is running on?
I am also assuming that you transferring it to windows?
Can you transfer it through CLI (ftp get)?
Could you also make sure that your program does not exit before the file is fully transferred in case your file is big.
Can you also look at the FTP samples? It has both Inbound and Outbound sample.
Also, if you still have an issue but somehow get it to work with FTPclient directly it would be nice to compare the code, since it seem to be a platform/environment specific issue which I can't reproduce.