Página 1 de 1

TFtp .... progress bar ??

Publicado: Jue Mar 19, 2009 6:08 pm
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

TFtp .... progress bar ??

Publicado: Vie Mar 20, 2009 1:24 pm
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

TFtp .... progress bar ??

Publicado: Vie Mar 20, 2009 1:24 pm
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

TFtp .... progress bar ??

Publicado: Vie Mar 20, 2009 2:17 pm
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
>

TFtp .... progress bar ??

Publicado: Vie Mar 20, 2009 2:17 pm
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
>

TFtp .... progress bar ??

Publicado: Jue Mar 26, 2009 9:10 am
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

TFtp .... progress bar ??

Publicado: Jue Mar 26, 2009 9:10 am
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

TFtp .... progress bar ??

Publicado: Jue Mar 26, 2009 10:39 pm
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

TFtp .... progress bar ??

Publicado: Jue Mar 26, 2009 10:39 pm
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