I am trying to implement a FTP Loader in java. Till now I am able to connect to the FTP Server successfully using Sockets. I am able to pass user, pass and pwd commands to the ftp server using a dataoutputstream object. Now when I am trying to access the files or directories present at the server I pass the ls command. But this command is not working. Pls suggest what should I do for this.
hi Radhika, so you are using someone elses code? if so then you can have look at that code (may by decompile it if you don't have the source code) and then understand how FTP client works by browing Google. that can give u better idea about the problem you face...
if you have implemented on your own then please post your code for the communication with the FTP server so we can throw some thoughts on it and have better idea about it.. i have a FTP client code myself but if you are interested in developing it yourself then i would be happy to guide you if i can... i also had copied a code from somewhere else but i did following things before i used it, 1. read the code and understood how FTP client works 2. removed a bug in the code that i found when i didnt get output of 'pwd' command... besides, FTP help might be helpful to you to understand FTP client basics thanks maulin
Joined: Dec 12, 2002
Hi Maulin Vasavada & Chang Thanks for your replies. I am trying to implement this FTP loader which can upload and download files on and from a remote ftp server. Actually I am new to Java coding. I have somehow managed to connect to the server thru my prog. Now the problem is that if I give ls or any other command it's not working Only pwd works
I will post my code on this in a short while.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com