FTPClient client = new FTPClient();
client.connect("ftp.host.com", port);
client.login("carlo", "mypassword");
client.upload(new java.io.File("localFile.ext"));
The
ftp4jlibrary implements a
Java full-features FTP client. With ftp4j embedded in your application
you can: transfer files (
uploadand
download), browse the remote FTP site (
directory listingincluded),
create,
delete,
renameand
moveremote
directoriesand
files.