IdFtp.Compressor

Giganews Newsgroups
Subject: IdFtp.Compressor
Posted by:  Pascal (pcoen…@telenetdotbe)
Date: Sun, 25 Jan 2009

Hi,

I'm trying to understand the compressor property of TIdFtp.

It seems to be working thanks to the code I found in this newsgroup:

>  FTPClient.Compressor:=FFTPCompressor;
>  FTPClient.TransferMode(dmDeflate);

Ok, but why do I need to assign the TransferMode after every Connect to
the Ftp sever. I need todo this because after each connect the
TransferMode is set back to dmStream (Indy Code).

Any idea why? Thanks in advance.

Best Regards,
Pascal

--

Replies