Java FTP multi file transfer

Asked By 0 points N/A Posted on -

Hello Friends,

I heard that Java FTP multi file transfer will be very much effective and will run at high speed, Can anyone provide me the Java coding for FTP multi file transfer.

Please Help,

Angela D Sloan

Answered By 0 points N/A #198801

Java FTP multi file transfer


There are four options to transfer FTP files in java, and one of them gives the opportunity of transferring multi files, named, Jakarta Net Classes. It is well tested and free to use, is more feature-rich than other classes, so Jakarta Commons is a good bet. The code for using this is:


FTPClient ftp = new FTPClient();


ftp.login("admin", "secret");



for(File file : files) {

    InputStream in = new FileInputStream(file);

    ftp.storeFile(file.getName(), in);







Login/Register to Answer

Related Questions