Search found 18 matches: openwrite

Return to advanced search

Conexion FTP TSL

... ) MsgStop( "File not found: " + cSource ) Return .f. endif hSource = FOpen( cSource ) oFile = TFtpFile():New( cTarget, oFTP ) oFile:OpenWrite() FSeek( hSource, 0, 0 ) nFile := 0 while ( nBytes := FRead( hSource, @cBuffer, nBufSize ) ) > 0 oFile:Write( SubStr( cBuffer, 1, nBytes ...
by servicomver
Wed Jan 25, 2023 10:45 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Conexion FTP TSL
Replies: 7
Views: 833

Re: Bajar ficheros desde una conexión FTP.

... hSource :=FOpen(cFileOrigen) cFileFTP:='httpdocs/Clientes/Archivo.txt' oFile :=TFtpFile():New(cFileFTP, oFTP) oFile:OpenWrite() FSeek(hSource, 0, 0) nBufSize:=2000000 cBuffer :=space(nBufSize) do while ( nBytes:=FRead( hSource, @cBuffer, nBufSize ) ) > 0 oFile:Write( ...
by Joel Andujo
Tue Feb 27, 2018 3:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Bajar ficheros desde una conexión FTP.
Replies: 5
Views: 1311

Re: FTP upload blocked by Firewall

hmpaquito, Can you please tell me, what exactly is the purpose of this method? Can I use it somehow to catch the problem I have in function oFile:OpenWrite() when uploading to FTP? If so, can you please make a small example I need to be able either to detect if the program is in the Firewall list ...
by codemaker
Thu Feb 05, 2015 5:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FTP upload blocked by Firewall
Replies: 8
Views: 2173

Re: FTP upload blocked by Firewall

... I have no idea because she decides where she will backup her files, she said "you are programmer, you should know"....) Seems that the :OpenWrite function cannot be CATCH-ed, because it is not actually an error - the FTP class just tries to create and get the handle of the file on FTP ...
by codemaker
Thu Feb 05, 2015 11:54 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FTP upload blocked by Firewall
Replies: 8
Views: 2173

FTP upload blocked by Firewall

... firewall list: It hangs on: // This creates the object normaly oFile = TFtpFile():New( aTarget[ n ], oFTP ) // It hangs on the line below: oFile:OpenWrite() It doesn't show any info, just hangs forewer... Is there any way I can catch the moment the Firewall is blocking opening the file for writting ...
by codemaker
Wed Feb 04, 2015 11:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FTP upload blocked by Firewall
Replies: 8
Views: 2173

Subir ficheros por FTP

... FTP y no consigo que funcione, a lo más que llega es a crear el archivo en el servidor, pero se queda con 0 bytes de longitud. La llamada a oFile:OpenWrite() se demora más de un minuto y se queda con permisos 644 en el servidor . Uso Harbour (no XHarbour), no se si esto tendrá algo que ver. Saludos ...
by Sebastián Almirón
Tue Nov 12, 2013 12:53 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Subir ficheros por FTP
Replies: 4
Views: 1144

Re: Cliente FTP con FW+xH

... 0, 2 ) FClose( hSource ) next for n = 1 to Len( aSource ) hSource = FOpen( aSource[ n ] ) oFile = TFtpFile():New( aTarget[ n ], oFTP ) oFile:OpenWrite() FSeek( hSource, 0, 0 ) nFile := 0 while ( nBytes := FRead( hSource, @cBuffer, nBufSize ) ) > 0 .and. ! lEnd oFile:Write( SubStr( cBuffer, ...
by postinelli
Tue Jan 24, 2012 12:18 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Cliente FTP con FW+xH
Replies: 8
Views: 2977

Re: ayuda como subir archivo via ftp

... 0, 2 ) FClose( hSource ) next for n = 1 to Len( aSource ) hSource = FOpen( aSource[ n ] ) oFile = TFtpFile():New( aTarget[ n ], oFTP ) oFile:OpenWrite() FSeek( hSource, 0, 0 ) nFile := 0 while ( nBytes := FRead( hSource, @cBuffer, nBufSize ) ) > 0 .and. ! lEnd oFile:Write( SubStr( cBuffer, ...
by postinelli
Fri Dec 09, 2011 12:10 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ayuda como subir archivo via ftp
Replies: 3
Views: 1022

Re: Cambios en la clase TFTPFile?

... el archivo, pienso que debe ser un retraso, al escribir en el archivo txt se retrasa unos segundos y de ahi se logra subir al servidor FTP. oFile:OpenWrite() oTxt:=TTxtFile():New("c:\probando.txt") oTxt:add(cFTPDir+cFile+" "+time()) oTxt:add(STR(oFile:hFile)+" "+time()) ...
by omarelunico
Thu Sep 15, 2011 8:50 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Cambios en la clase TFTPFile?
Replies: 4
Views: 848

Re: QFTP doesn't work on some machines

... wich has problem with this and I found that the problem is:     oFile = TFtpFile():New( aTarget[ n ], oFTP )    oFile:OpenWrite()      // <= this is the poit where the process hangs....  Where is this OpenWrite() function? I need to check what ...
by codemaker
Wed Jan 26, 2011 2:15 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: QFTP doesn't work on some machines
Replies: 10
Views: 1947

Re: FTP Bajar y Subir archivos

... next oMeter2:nTotal = nTotSize for n = 1 to Len( aSource ) hSource = FOpen( aSource[ n ] ) oFile = TFtpFile():New( aTarget[ n ], oFTP ) oFile:OpenWrite() oSay1:SetText( "Source: " + aSource[ n ] ) oSay2:SetText( "Target: " + aTarget[ n ] ) oMeter1:Set( 0 ) oMeter1:nTotal ...
by Dioni
Sun May 24, 2009 1:36 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: FTP Bajar y Subir archivos
Replies: 2
Views: 1402

Re: FTP si Funciona con Vista y no con XP

... next oMeter2:nTotal = nTotSize for n = 1 to Len( aSource ) hSource = FOpen( aSource[ n ] ) oFile = TFtpFile():New( aTarget[ n ], oFTP ) oFile:OpenWrite() oSay1:SetText( "Origen : " + aSource[ n ] ) oSay2:SetText( "Destino: " + aTarget[ n ] ) oMeter1:Set( 0 ) oMeter1:nTotal = FSeek( hSource, ...
by jnavas
Thu Oct 02, 2008 3:21 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: FTP si Funciona con Vista y no con XP
Replies: 2
Views: 1010

Re: FTP si Funciona con Vista y no con XP

... next oMeter2:nTotal = nTotSize for n = 1 to Len( aSource ) hSource = FOpen( aSource[ n ] ) oFile = TFtpFile():New( aTarget[ n ], oFTP ) oFile:OpenWrite() oSay1:SetText( "Origen : " + aSource[ n ] ) oSay2:SetText( "Destino: " + aTarget[ n ] ) oMeter1:Set( 0 ) oMeter1:nTotal = FSeek( hSource, ...
by jnavas
Wed Oct 01, 2008 4:29 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: FTP si Funciona con Vista y no con XP
Replies: 2
Views: 1010

FTP si Funciona con Vista y no con XP

... next oMeter2:nTotal = nTotSize for n = 1 to Len( aSource ) hSource = FOpen( aSource[ n ] ) oFile = TFtpFile():New( aTarget[ n ], oFTP ) oFile:OpenWrite() oSay1:SetText( "Origen : " + aSource[ n ] ) oSay2:SetText( "Destino: " + aTarget[ n ] ) oMeter1:Set( 0 ) oMeter1:nTotal = FSeek( hSource, ...
by jnavas
Wed Oct 01, 2008 8:24 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: FTP si Funciona con Vista y no con XP
Replies: 2
Views: 1010

FTP

... LOCAL oFile, h, cBuff, nSize, nRead, nWrite LOCAL lRet := .F. oFile := TFtpFile():New(cFTPDir+cFile,oFtp) oFile:OpenWrite() if oFile:hFile > 0 h := fOpen(cFile) nSize := fSeek(h,0,2) fSeek(h,0,0) cBuff := Space(nSize) nRead := fRead(h,@cBuff,nSize) fClose(h) ...
by omarelunico
Tue Jul 10, 2007 10:19 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ftp con fivewin
Replies: 10
Views: 4328
Next

Return to advanced search