title: Create zip from multiple files in memory
body: <p>I am trying to use SharpZipLib to generate zip file and let the client download it.</p>
  
  <p>Currently zip folder is created and available on client machine but the issue is download.zip folder is blank. The files which are specified in a folder are not available in zip folder.</p>
  
  <p>Below is the code I tried.</p>
  
  <pre><code>System.Web.HttpResponse response = System.Web.HttpContext.Current.Response;
  ICSharpCode.SharpZipLib.Checksums.Crc32 crc = new ICSharpCode.SharpZipLib.Checksums.Crc32();
  
  //stream directly to client.
  ICSharpCode.SharpZipLib.Zip.ZipOutputStream output = new ICSharpCode.SharpZipLib.Zip.ZipOutputStream(response.OutputStream);
  output.SetLevel(9);
  string[] files =    Directory.GetFiles("D:/newfolder/");
  for (int i = 0; i &lt; files.Length; i++)
  {
      ICSharpCode.SharpZipLib.Zip.ZipEntry entry = new ICSharpCode.SharpZipLib.Zip.ZipEntry(files[i].ToString());
      entry.DateTime = DateTime.Now;
      System.IO.FileStream fs = new System.IO.FileStream(files[i].ToString(), FileMode.Open);      
      byte[] buffer = new byte[fs.Length];
      fs.Read(buffer, 0, buffer.Length);
      entry.Size = fs.Length;
      fs.Close();
      crc.Reset();
      crc.Update(buffer);
      entry.Crc = crc.Value;
      output.PutNextEntry(entry);
      output.Write(buffer, 0, buffer.Length);
  }
  
  output.Finish();
  output.Close();
  response.Clear();
  response.ContentType = "D:/Work Area/";
  response.AddHeader("Content-Disposition", "attachment; filename=" + "download.zip");
  response.End();
  </code></pre>
  
  <p>Can anyone tell me whats the issue? Why the files are not available in .zip</p>