FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ftp transfer
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
ftp transfer
Posted: Tue Aug 07, 2007 10:52 AM

Hello

My application transmits on a daily basis a file to a server via ftp.

From time to time, when we check the file at the server end it is not sent completely but part of the file.

Is there a way to control the size of a received file (ftp) versus the transmitted one ?

Any help will be appreciated,

Thanks

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ftp transfer
Posted: Tue Aug 07, 2007 11:36 AM

Richard,

Do you use Microsoft's wininet FWH based classes ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
ftp transfer
Posted: Tue Aug 07, 2007 12:38 PM

Antonio

Yes i use wininet with fwh

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
ftp transfer
Posted: Tue Aug 07, 2007 12:55 PM

Try to check the return value of the APIs.

EMG

Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
ftp transfer
Posted: Tue Aug 07, 2007 12:58 PM

Enrico

I do, it returns ok while the file is not fully transfered.

This is why i want to check the file size.

I guess i will user oftp:directory()

The second element of the array is the file size if i am not mistaking.

Will give it a try

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
ftp transfer
Posted: Tue Aug 07, 2007 02:15 PM

If the APIs return .T. then the file must be fully transfered. The problem is elsewhere.

EMG

Continue the discussion