Files are useful for applications to communicate with others. For instance, web applications can communicate with Google’s crawlers via sitemaps on the Internet. A web application write urls to its pages to its sitemap. When Google’s crawlers come to this web applications, they will download these sitemaps to index urls to the pages of .
To reduce the time needed for files to be trasmitted over the network, it is a good idea for applications to compress files before sending them out to the network, or for a web application, making them available for download via HTTP.
In this post, I document how we can compress and decompress files via the GZip implementation in C# –