What Java Ftp Client Library Should I Use

What Java FTP client library should I use?

Check out Apache commons-net, which contains FTP utilities. Off the top of my head I'm not sure if it meets all of your requirements, but it's certainly free!

open source java FTP client library

Have a look at Apache Commons Net, http://commons.apache.org/net/

It implements many internet protocols, among them is ftp.

Android FTP Library

Try using apache commons ftp

FTPClient ftpClient = new FTPClient();
ftpClient.connect(InetAddress.getByName(server));
ftpClient.login(user, password);
ftpClient.changeWorkingDirectory(serverRoad);
ftpClient.setFileType(FTP.BINARY_FILE_TYPE);

BufferedInputStream buffIn = null;
buffIn = new BufferedInputStream(new FileInputStream(file));
ftpClient.enterLocalPassiveMode();
ftpClient.storeFile("test.txt", buffIn);
buffIn.close();
ftpClient.logout();
ftpClient.disconnect();

Alternatives to commons-net FTPSClient?

ftp4j provides FTPS functionality and is, IMHO, easier to work with than the apache commons ftp client. Ftp4j is under active development (not by me).

Standard Java Classes for FTP operations

Why would your manager not want to use a proven piece of software and replace it with something that you'd have to write, test, and maintain? Your boss is an idiot - use the Apache FTP client and move on. You have more interesting business problems to solve.

Secure FTP with org.apache.commons.net.ftp.FTPClient

You can use org.apache.commons.net.ftp.FTPSClient instead of org.apache.commons.net.ftp.FTPClient to have secure ftp
http://commons.apache.org/proper/commons-net/apidocs/org/apache/commons/net/ftp/FTPSClient.html

java sftp & ftp client library that support file and dir monitoring

The most complete is probably Jakarta Commons Net: http://commons.apache.org/net/



Related Topics



Leave a reply



Submit