La conexion la realiza correctamente.
Crea el fichero
Pero lo deja con 0 bytes.
No me da ning煤n tipo de error.
Alguien sabe porque puede ser?
Este es el c贸digo que uso
聽 聽 聽 EXP_ART->( dbGotop() )
聽 聽 聽 oBrw:refresh()
聽 聽 聽 // Subo el Fichero
聽 聽 聽 oInternet := TInternet():New()
聽 聽 聽 oFTP := TFTP():New( Alltrim(cServFtp), oInternet, Alltrim(cUserFtp),Alltrim(cPassFtp), lPASSIVE_MODE )
聽 聽 聽 If !Empty( oFTP:hFTP )
聽 聽 聽 聽 oFTP:SetCurrentDirectory( "/" )
聽 聽 聽 聽 oFTP:DeleteFile( "subida.xml" )
聽 聽 聽 聽 hSource = FOpen( "..\INTER\subida.xml" )
聽 聽 聽 聽 oFile = TFtpFile():New( "subida.xml", oFTP )
聽 聽 聽 聽 oFile:OpenWrite()
聽 聽 聽 聽 FSeek( hSource, 0, 0 )
聽 聽 聽 聽 SysRefresh()
聽 聽 聽 聽 while ( nBytes := FRead( hSource, @cBuffer, nBufSize ) ) > 0
聽 聽 聽 聽 聽 oFile:Write( SubStr( cBuffer, 1, nBytes ) )
聽 聽 聽 聽 聽 SysRefresh()
聽 聽 聽 聽 end
聽 聽 聽 聽 FClose( hSource )
聽 聽 聽 聽 oFile:End()
聽 聽 聽 聽 oInternet:End()
聽 聽 聽 聽 MsgInfo( "Articulos exportados CORRECTAMENTE", "Informaci贸n" )
聽 聽 聽 endif
* 聽 聽 聽msgstop("subido")
聽
* 聽 聽 聽ferase( "..\INTER\subida.xml" )