The function down allows connectar in another servant and to copy a file,
only that the copy this with reduced to zero size. What done this miss?
import java.io.*;
import com.oroinc.net.ftp.*;
public final class FTP {
public static final void main(
String[] args) {
FTPClient client;
client = new FTPClient();
try {
client.connect("ftp.javasoft.com");
if(!FTPReply.isPositiveCompletion(client.getReplyCode())) {
client.disconnect();
System.err.println("FTP server refused connection.");
return;
}
client.login("anonymous", "user@hostname");
client.retrieveFile("c:/user/back2a.gif", new FileOutputStream("e:/temp/back2a.gif"));
client.quit();
client.disconnect();
}
catch(IOException e) {
e.printStackTrace();
}
}
}