title: How to zip a file while writing to it?
body: <p>Does anyone know of a way to zip a stream that you are writing to? I'm trying to avoid writing the file to the disk, and was wondering if I can just compress data as you are writing it to the stream.</p>
  
  <p>The use case behind this is that the raw file is going to be very large and we want to avoid having to write the entire thing unzipped onto the disk.</p>