{"id":3184,"date":"2012-06-19T19:50:57","date_gmt":"2012-06-19T17:50:57","guid":{"rendered":"http:\/\/www.limilabs.com\/blog\/?p=3184"},"modified":"2012-06-19T19:50:57","modified_gmt":"2012-06-19T17:50:57","slug":"ftp-zlib-compression","status":"publish","type":"post","link":"https:\/\/www.limilabs.com\/blog\/ftp-zlib-compression","title":{"rendered":"Ftp zlib compression"},"content":{"rendered":"<p>Ftp.dll <a href=\"\/ftp\">FTP component<\/a> supports <strong>zlib compression<\/strong> for all data transfers.<\/p>\n<h2>What is zlib<\/h2>\n<p>zlib is a compression method which can greatly decrease the size of data, similar to popular compression format &#8211; Zip.<\/p>\n<h2>How to use zlib<\/h2>\n<p>zlib can be used with Ftp.dll FTP\/FTPS component thanks to the newly implemented <strong>MODE Z<\/strong> command. This command and format have been already adopted by popular FTP servers.<\/p>\n<p>Ftp.dll automatically turns compression on, if it is supported by FTP server. zlib compression is transparent to users. It is activeted using MODE Z command. Once sent, client sends and receives compressed data, so all directory listings and file exchanges between server and client will be compressed.<\/p>\n<h2>What is the benefit?<\/h2>\n<p>Faster data transfers! Directory listing, which is text, can be highly compressed with zlib thus boosting the server and client network speed and reactivity.<\/p>\n<p>Transfers of html, scripts or large logfiles (which are text) no longer needs to be zipped before being sent via ftp and should generally experience a <strong>3-4 times gain in data transfers<\/strong>.<\/p>\n<p>For example, a 60MB log file can turn into a 5MB data exchange when transferred with MODE Z enabled.<\/p>\n<p>Depending on the file content, you will see different results:<\/p>\n<ul>\n<li>Text files : ~15-20% of original size.<\/li>\n<li>Html files : ~25-30% of original size.<\/li>\n<li>Media, video, sound : ~90-95% of original size.<\/li>\n<li>Already compressed documents with Zip, Rar, Ace etc. will see almost no gain at all.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Ftp.dll FTP component supports zlib compression for all data transfers. What is zlib zlib is a compression method which can greatly decrease the size of data, similar to popular compression format &#8211; Zip. How to use zlib zlib can be used with Ftp.dll FTP\/FTPS component thanks to the newly implemented MODE Z command. This command [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[82,22,80],"class_list":["post-3184","post","type-post","status-publish","format-standard","hentry","category-ftp-dll","tag-compression","tag-ftp","tag-ftp-component"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/3184"}],"collection":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/comments?post=3184"}],"version-history":[{"count":5,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/3184\/revisions"}],"predecessor-version":[{"id":3189,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/3184\/revisions\/3189"}],"wp:attachment":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/media?parent=3184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/categories?post=3184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/tags?post=3184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}