Aller au contenu
View in the app

A better way to browse. Learn more.

Forum de Frandroid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

utilisation de FTPClient

Featured Replies

Posté(e)

Bonjour,

je suis dans l'envoi de fichier en FTP et j'ai trouvé un package qui permet de faire la connexion et l'envoi malheureusement j'arrive pas à envoyer le fichier, j'ouvre la connexion, je prends mon fichier mais après quand je regarde sur le serveur avec fileZila le fichier est bien créé mais il n'y a rien dedans !! donc je voulais savoir si quelqu'un ici a réussi à sen servire ? voici mon code d'envoi :

public void setFile() throws SocketException, IOException {

   	FTPClient client = new FTPClient();

   	FileInputStream fis = null;
   	BufferedInputStream buffin = null;

   	client.connect("host", FTPClient.DEFAULT_PORT);
   	client.login("user", "mdp");

	if(client.isConnected()){
		text.setText("je suis connecté");
	}

   	client.enterLocalPassiveMode();

   	client.setFileType(FTPClient.LOCAL_FILE_TYPE);

   	buffin = new BufferedInputStream(new FileInputStream("/sdcard/Dvide.xml"));

   	client.storeFile("nouveau.xml", buffin); // quand je teste l’erreur vient d'ici 

   	client.logout();
   	fis.close();
   	client.disconnect();
}

si quelqu'un a une solution ?

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Account

Navigation

Rechercher

Rechercher

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.