![]() |
|
[java] ftp client using apache commons lib - Printable Version +- HN-Community (https://hacker-newbie.org) +-- Forum: Miscellaneous (https://hacker-newbie.org/forum-86.html) +--- Forum: Coding/Programing (https://hacker-newbie.org/forum-19.html) +---- Forum: Aplication Programing (https://hacker-newbie.org/forum-39.html) +---- Thread: [java] ftp client using apache commons lib (/thread-16827.html) |
[java] ftp client using apache commons lib - Dika_xb - 03-27-2013 ftp adalah protokol yang familiar untuk upload/download file untuk akses ftp pada java bisa menggunakan package org.apache.commons.net.ftp.* library Apache Commons bisa di download di http://commons.apache.org/proper/commons-net/ library ini menyediakan banyak fasilitas untuk basic internet protokol. sample login client ftp Code: try{
FTPClient ftp = new FTPClient();
ftp.connect("localhost",21);
if(ftp.login(username,password))
{
System.out.println("login sukses");
}
}catch(Exception e)
{
System.out.println(e);
}untuk fitur lain silahkan lihat dokumentasi manualnya,seperti list dir,unggah/unduh file dll sumber http://commons.apache.org/proper/commons-net/ ![]() kalo ada yg salah mohon di koreksi
RE: [java] ftp client using apache commons lib - Up_ - 03-28-2013 wah helcome dika.. ajarin java ane yoo :D RE: [java] ftp client using apache commons lib - hogyz - 03-28-2013 masih blom paham, mungkin harus di kuliti lagi kyak nya java ini :) RE: [java] ftp client using apache commons lib - EXz - 04-12-2013 yg expertnya dong om ![]()
RE: [java] ftp client using apache commons lib - homeless36 - 03-13-2014 Dicoba dulu ya Om :) |