title: How to upload GZip compressed data using System.Net.WebClient in C#
body: <p>In my project I need to upload large JSON data from a desktop app. So, I need it to be compressed.</p>
  
  <p>I searched everywhere but I did not find a complex solution to my problem. So, I put several snippets together. See the answer below. I hope you find it useful.</p>