Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
FTPClient ftp = new FTPClient();
//conectar al servidor and login
try
{
System.out.println( "Connecting" );
ftp.connect(server);
if(!ftp.login(username, password))
{
System.out.println( "Login failed" );
ftp.logout();
return;
}
int reply = ftp.getReplyCode();
System.out.println( "Connect returned: " + reply );
if (!FTPReply.isPositiveCompletion(reply)) {
ftp.disconnect();
System.out.println( "Connection failed" );
return;
}
ftp.enterLocalPassiveMode();
FileInputStream in = new FileInputStream(local);
ftp.setFileType(ftp.BINARY_FILE_TYPE);
System.out.println( "Uploading File" );
boolean store = ftp.storeFile("test.txt",in);
in.close();
ftp.logout();
ftp.disconnect();
}
catch(Exception ex)
{
ex.printStackTrace();
}
FTPClient client = new FTPClient();
FileInputStream fis = null;
client.connect("bitchapp.cwsurf.de");
client.login("usr_ftp_173803_0", "nhjkk3nhj");
String filename = "daten.txt";
fis = openFileInput(filename);
client.storeFile(filename, fis);
client.logout();
fis.close();
0 1 0 0 1 0 1 1 1 1 0 1 0 0 1 1 1 1 0 0 0 0 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 1 0 0 1 0 0 0 0 0 1 0 0 1 1 0 0 1 0 1 1 0 0 0 0 0 0 1 1 1 0 1 1 1 1 0 0 1 1 0 1 0 1 1 0 0 0 0 1 1 1 1 0 1 0 0 0 1 0 1 1 0 1 0 0 0 0 0 1 0 0 0 0 0 0 1 1 1 1 0 0 1 1 1 0 1 1 1 0 1 0 0 0 1 1 1 1 0 0 0 1 0 1 1 1 1 1 1 0 1 0 1 1 1 1 1 0 ???