In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

TFtp .... progress bar ??

Xailer professional forum in English
Responder
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

TFtp .... progress bar ??

Mensaje por ChrisGillard »

Am using TFtp to transfer some files ... working fine.
Is there an easy way to update a progress bar when using oFtp:GetFile(
.... ) ??
Have looked through the TFtp source and it looks like nothing in there.
Have looked through your FTP source on the Spanish Xailer blog and it does
seem to have progress but this is coded differently to TFtp .... its using
ReadFile and WriteFile .... I dont really want to do this.
TIpClientFtp in xHarbour does appear to have a progress calling slot.
So question is .... Is there an easy way to update a progress bar when using
oFtp:GetFile( ... ) ??
Any help would be appreciated.
Chris Gillard
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

TFtp .... progress bar ??

Mensaje por jfgimenez »

Chris,
> Am using TFtp to transfer some files ... working fine.
>
> Is there an easy way to update a progress bar when using oFtp:GetFile(
> .. ) ??
>
> Have looked through the TFtp source and it looks like nothing in there.
>
> Have looked through your FTP source on the Spanish Xailer blog and it does
> seem to have progress but this is coded differently to TFtp .... its using
> ReadFile and WriteFile .... I dont really want to do this.
>
> TIpClientFtp in xHarbour does appear to have a progress calling slot.
>
> So question is .... Is there an easy way to update a progress bar when
> using oFtp:GetFile( ... ) ??
>
> Any help would be appreciated.
You may use the class TAsyncFiledownload. That class makes the job in a
second thread, that is, not blocking the main thread, and fires an event
periodically to indicate the download progress.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

TFtp .... progress bar ??

Mensaje por jfgimenez »

Chris,
> Am using TFtp to transfer some files ... working fine.
>
> Is there an easy way to update a progress bar when using oFtp:GetFile(
> .. ) ??
>
> Have looked through the TFtp source and it looks like nothing in there.
>
> Have looked through your FTP source on the Spanish Xailer blog and it does
> seem to have progress but this is coded differently to TFtp .... its using
> ReadFile and WriteFile .... I dont really want to do this.
>
> TIpClientFtp in xHarbour does appear to have a progress calling slot.
>
> So question is .... Is there an easy way to update a progress bar when
> using oFtp:GetFile( ... ) ??
>
> Any help would be appreciated.
You may use the class TAsyncFiledownload. That class makes the job in a
second thread, that is, not blocking the main thread, and fires an event
periodically to indicate the download progress.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

TFtp .... progress bar ??

Mensaje por ChrisGillard »

Jose,
Thanks for the reply.
I will take a look at TAsynchFileDownload ...
I see it appears to be HTTP protocol, so dont know if that will work with a
FTP server ?
I will investigate.
Regards
Chris
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:49c38b10$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Chris,
>
>> Am using TFtp to transfer some files ... working fine.
>>
>> Is there an easy way to update a progress bar when using oFtp:GetFile(
>> . ) ??
>>
>> Have looked through the TFtp source and it looks like nothing in there.
>>
>> Have looked through your FTP source on the Spanish Xailer blog and it
>> does seem to have progress but this is coded differently to TFtp .... its
>> using ReadFile and WriteFile .... I dont really want to do this.
>>
>> TIpClientFtp in xHarbour does appear to have a progress calling slot.
>>
>> So question is .... Is there an easy way to update a progress bar when
>> using oFtp:GetFile( ... ) ??
>>
>> Any help would be appreciated.
>
> You may use the class TAsyncFiledownload. That class makes the job in a
> second thread, that is, not blocking the main thread, and fires an event
> periodically to indicate the download progress.
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info
>
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

TFtp .... progress bar ??

Mensaje por ChrisGillard »

Jose,
Thanks for the reply.
I will take a look at TAsynchFileDownload ...
I see it appears to be HTTP protocol, so dont know if that will work with a
FTP server ?
I will investigate.
Regards
Chris
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:49c38b10$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Chris,
>
>> Am using TFtp to transfer some files ... working fine.
>>
>> Is there an easy way to update a progress bar when using oFtp:GetFile(
>> . ) ??
>>
>> Have looked through the TFtp source and it looks like nothing in there.
>>
>> Have looked through your FTP source on the Spanish Xailer blog and it
>> does seem to have progress but this is coded differently to TFtp .... its
>> using ReadFile and WriteFile .... I dont really want to do this.
>>
>> TIpClientFtp in xHarbour does appear to have a progress calling slot.
>>
>> So question is .... Is there an easy way to update a progress bar when
>> using oFtp:GetFile( ... ) ??
>>
>> Any help would be appreciated.
>
> You may use the class TAsyncFiledownload. That class makes the job in a
> second thread, that is, not blocking the main thread, and fires an event
> periodically to indicate the download progress.
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info
>
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

TFtp .... progress bar ??

Mensaje por ChrisGillard »

Jose,
Thanks for that.
I will study the code, it looks like it will do thejob.
Thanks
Chris
"José Lalín" <notengo@correo.com> wrote in message
news:49caa477$[email=2@svctag-j7w3v3j....]2@svctag-j7w3v3j....[/email]
>
> Chris,
>
> check this article:
>
> http://xailer.info/esp/?p=77
>
> It is in Spanish but it has a sample to use the component.
>
> Regards,
> José Lalín
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

TFtp .... progress bar ??

Mensaje por ChrisGillard »

Jose,
Thanks for that.
I will study the code, it looks like it will do thejob.
Thanks
Chris
"José Lalín" <notengo@correo.com> wrote in message
news:49caa477$[email=2@svctag-j7w3v3j....]2@svctag-j7w3v3j....[/email]
>
> Chris,
>
> check this article:
>
> http://xailer.info/esp/?p=77
>
> It is in Spanish but it has a sample to use the component.
>
> Regards,
> José Lalín
notengo
Mensajes: 417
Registrado: Vie Oct 12, 2007 1:29 pm

TFtp .... progress bar ??

Mensaje por notengo »

Chris,
check this article:
http://xailer.info/esp/?p=77
It is in Spanish but it has a sample to use the component.
Regards,
José Lalí­n
notengo
Mensajes: 417
Registrado: Vie Oct 12, 2007 1:29 pm

TFtp .... progress bar ??

Mensaje por notengo »

Chris,
check this article:
http://xailer.info/esp/?p=77
It is in Spanish but it has a sample to use the component.
Regards,
José Lalí­n
Responder