ComponentPro UltimateSftp

      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.
      Sftp client = new Sftp();
      // Turn on transfer compression. By default, the EnableCompression property is set to false.
      client.Config.EnableCompression = true;
      // If you wish to turn off transfer compression 
      // client.EnableCompression = false; 
      // Connect to the server
      client.Connect("server", 22);
      // ...