ftp transfer

ftp transfer

Postby Richard Chidiak » 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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby Antonio Linares » Tue Aug 07, 2007 11:36 am

Richard,

Do you use Microsoft's wininet FWH based classes ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Richard Chidiak » 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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby Enrico Maria Giordano » Tue Aug 07, 2007 12:55 pm

Try to check the return value of the APIs.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Richard Chidiak » 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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby Enrico Maria Giordano » Tue Aug 07, 2007 2:15 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 57 guests