Re: IDFTP TransferMode(dmDeflate);

Giganews Newsgroups
Subject: Re: IDFTP TransferMode(dmDeflate);
Posted by:  Remy Lebeau \(Indy Team\) (no.spam@no.spam.com)
Date: Mon, 6 Apr 2009

"Theart" <nyxsn…@126.com> wrote in message
news:71B9E7CE317CE340nyxsn…@126.com...

> idftp1.TransferMode(dmDeflate);
> tsize:=idftp1.Size('/AvatarIcon.pack');

What value is Size() actually returning?  Is it the correct size of the
compressed file transfer, or is it the size of the uncompressed file prior
to being transferred?

> Gauge1.Progress := trunc(AWorkCount/tsize*100)  // --> Gauge1.Progress is
> wrong

You need to be more specific.  Just saying it is wrong is not helpful.  What
is the actual value of AWorkCount?  Of tsize?  The OnWork... events are
going to represent the number of compressed bytes received, not the number
of decompressed bytes that are written to the local file.

--
Remy Lebeau (TeamB)

Replies

None

In response to

IDFTP TransferMode(dmDeflate); posted by Theart on Fri, 3 Apr 2009