Article View: borland.public.cppbuilder.internet.socket
Article #1028Re: Need Assistance with the TIdFTP Component in BCB 2006...
From: Remy Lebeau (TeamB)
Date: Thu, 28 Jun 2007 03:21
Date: Thu, 28 Jun 2007 03:21
24 lines
1769 bytes
1769 bytes
"Bob Gonder" <notbg@notmindspring.invalid> wrote in message news:8l7683p0biqji92gqsm17hane1hdm6kd7q@4ax.com... > Remy mentioned some time ago that Get doesn't know > the size of the file. Correct. The FTP specification does not provide any means of specifying the file size during a transfer. > If that is still the case It is. > then you would need to figure the file size before downloading. Correct. TIdFTP has a Size() method for that, though not all servers support the SIZE command as it was not part of the original FTP specification. So if Size() returns -1, then you will have to use the List() method with the DirectoryListing property to grab information about the file. Gambit
Technical Details
Message-ID:
<46832b1f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<467f387d$1@newsgroups.borland.com> <4682c3f9@newsgroups.borland.com> <8l7683p0biqji92gqsm17hane1hdm6kd7q@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,43e624bf4e799e37 X-Google-Attributes: gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <467f387d$1@newsgroups.borland.com> <4682c3f9@newsgroups.borland.com> <8l7683p0biqji92gqsm17hane1hdm6kd7q@4ax.com> Subject: Re: Need Assistance with the TIdFTP Component in BCB 2006... Date: Wed, 27 Jun 2007 20:21:30 -0700 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 75.82.252.126 Message-ID: <46832b1f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1183001375 75.82.252.126 (27 Jun 2007 20:29:35 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail