<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.fr.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>29 Apr 2019 10:45:53 Z</lastBuildDate><pubDate>29 Apr 2019 10:05:20 Z</pubDate><description>Bonjour à tous,&#13;
&#13;
J'essaie de faire du FTP sur l'IFS de l'AS400 . &#13;
J'y arrive parfaitement via une ligne de commande dos.&#13;
&#13;
Par contre, côté windev, cela coince.&#13;
Déjà FTPRecupere ne fonctionne pas avec un AS400 (d'après l'aide), et effectivement impossible de l'utiliser, alors que FTPEnvoie lui marche bien.&#13;
&#13;
Du coup je me suis tournée vers FTPCommande. Cela fonctionne pour les fichier texte, mais j'aimerais récupérer des images, et la, ça coince. Voila mon code de test : &#13;
[code:wl]&#13;
nIdFTP est un entier = FTPConnecte("srv-astest","TRFGED","MonMotDePasse")&#13;
Reponse est une chaîne&#13;
Resultat est une chaîne&#13;
bufReponse est un Buffer&#13;
bufResultat est un Buffer&#13;
&#13;
&#13;
SI nIdFTP &lt;&gt; -1 ALORS&#13;
//	LigneCommande()&#13;
	FTPCommande(nIdFTP,"TYPE I",Reponse)&#13;
	Trace(Reponse)&#13;
	FTPCommande(nIdFTP,"Site namefmt 1",Reponse)&#13;
	Trace(Reponse)&#13;
	FTPCommande(nIdFTP,"pasv",Reponse)&#13;
	Trace(Reponse)&#13;
	SI FTPCommande(nIdFTP,"RETR /home/trfged/qsg-information.png ",bufReponse,bufResultat) ALORS&#13;
		fSauveBuffer("c:\temp\test\qsg-information.png",bufResultat)&#13;
		Trace("Resultat FTP : " +Resultat)&#13;
	FIN&#13;
	SI FTPCommande(nIdFTP,"RETR /home/trfged/AuditPSTFiles.vbsv101-vbs.log",Reponse,Resultat) ALORS&#13;
		Trace("Resultat FTP : " +Resultat)&#13;
	FIN&#13;
FIN&#13;
&#13;
[/code]&#13;
&#13;
&#13;
&#13;
Ici le .log se récupère bien, le .png  ne me renvoie rien.  Enfin si, La fonction renvoie vrai, donc elle a bien été exécuté, mais il n'y a rien dans les variables reponse et resultat...&#13;
&#13;
Avez vous une idée ?&#13;
&#13;
Cordialement,&#13;
Fabien</description><ttl>30</ttl><generator>WEBDEV</generator><language>fr_FR</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229798-ftp-ifs-as400/read.awp</link><title>FTP IFS AS400</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>fab432</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229798-ftp-ifs-as400-229801/read.awp</comments><pubDate>29 Apr 2019 10:45:53 Z</pubDate><description>Oops ! &#13;
Finalement on oublie. A force de test je me suis rendu compte que mon fichier d'origine n'avait pas correctement envoyé…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229798-ftp-ifs-as400-229801/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229798-ftp-ifs-as400-229801/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229798-ftp-ifs-as400/read.awp">FTP IFS AS400</source><title>Re: FTP IFS AS400</title></item></channel></rss>
