title: Can GZip compression (via .net) increase file size?
body: <p>I keep track of the original size of the files that I'm compressing using .Net's GZipStream class, and it seems like the file that I thought I was compressing has increased in size. Is that possible?</p>
  
  <p>This is how I'm doing the compression:</p>
  
  <pre><code>Byte[] bytes = GetFileBytes(file);
  
  using (FileStream fileStream = new FileStream("Zipped.gz", FileMode.Create))
  {
      using (GZipStream zipStream = new GZipStream(fileStream, CompressionMode.Compress))
      {
          zipStream.Write(bytes, 0, bytes.Length);
      }
  }
  </code></pre>