ComponentPro UltimateFtp

      ZLIB transfer compression

      Language Filter: AllSend comments on this topic to ComponentPro

      You can enable the ZLIB compression mode to speed up data transfers and communication. For highly compressible files such as text files, the compression ratio can be up to 10:1, making the ZLIB compression mode very useful. However, the transfer speed might be slower when compressing already-compressed files.

      The compression mode is enabled by setting the Config.EnableCompression to true before connecting to the server:

      using ComponentPro.Net;
      // Create a new instance of the Sftp class. 
      using (Ftp client = new Ftp())
          // Turn on transfer compression. By default, the TransferMode property is set to Stream. 
          client.TransferMode = FtpTransferMode.Zlib;
          // If you wish to turn off transfer compression 
          // client.TransferMode = FtpTransferMode.Stream; 
          // Connect to the server 
          // ...