title: Creating Zip file from stream and downloading it
body: <p>I have a DataTable that i want to convert it to xml and then zip it, using DotNetZip. finally user can download it via Asp.Net webpage.
  My code in below </p>
  
  <pre><code>    dt.TableName = "Declaration";
  
      MemoryStream stream = new MemoryStream();
      dt.WriteXml(stream);
  
      ZipFile zipFile = new ZipFile();
      zipFile.AddEntry("Report.xml", "", stream);
      Response.ClearContent();
      Response.ClearHeaders();
      Response.AppendHeader("content-disposition", "attachment; filename=Report.zip");
  
      zipFile.Save(Response.OutputStream);
      //Response.Write(zipstream);
      zipFile.Dispose();
  </code></pre>
  
  <p>the xml file in zip file is empty.</p>