hello, how can i change this code to work with android?.. or how can i
easily connect and send file to ftp?..
import org.apache.commons.net.ftp.FTPClient;
import java.io.FileInputStream;
import java.io.IOException;
public class Main {
public static void main(String[] args) {
FTPClient client = new FTPClient();
FileInputStream fis = null;
client.connect("ftp.domain.com");
client.login("admin", "secret");
String filename = "Touch.dat";
fis = new FileInputStream(filename);
client.storeFile(filename, fis);
client.logout();
fis.close();
}
}
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en