Article View: borland.public.cppbuilder.internet.web
Article #1483Re: tidftp and tcgauge
From: Remy Lebeau (TeamB)
Date: Sat, 29 Jan 2005 22:18
Date: Sat, 29 Jan 2005 22:18
19 lines
1782 bytes
1782 bytes
"Jens Harms" <jens@harms.ch> wrote in message news:41fbef1b@newsgroups.borland.com... > my download works fine, but the visualisation in the cgauge does > not works. the progress will be full after the first bytes arrived. The AWorkCountMax value in the OnWorkBegin event will always be 0. A value of 0 means that TIdFTP does not khow ahead of time how many bytes to expect during the transfer. This is not a bug in TIdFTP, the FTP protocol in general does not provide that information to begin with. You will have to retreive the file's size separately before performing the transfer. TIdFTP has a Size() method for that. Do note, though that not all FTP servers support the SIZE command. In those cases, you will have to retreive a directory listing for the file instead and parse out the file size from that. Gambit
Technical Details
Message-ID:
<41fc0b06$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeder.wxs.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41fbef1b@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,f46215bb1b9c2953 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.web References: <41fbef1b@newsgroups.borland.com> Subject: Re: tidftp and tcgauge Date: Sat, 29 Jan 2005 14:18:02 -0800 Lines: 21 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: 68.69.17.41 Message-ID: <41fc0b06$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1107036934 68.69.17.41 (29 Jan 2005 14:15:34 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeder.wxs.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail