title: Create zip file from byte[]
body: <p>I am trying to create a Zip file in .NET 4.5 (System.IO.Compression) from a series of byte arrays.  As an example, from an API I am using I end up with a <code>List&lt;Attachment&gt;</code> and each <code>Attachment</code> has a property called <code>Body</code> which is a <code>byte[]</code>.  How can I iterate over that list and create a zip file that contains each attachment?</p>
  
  <p>Right now I am under the impression that I would have to write each attachment to disk and create the zip file from that.</p>
  
  <pre><code>//This is great if I had the files on disk
  ZipFile.CreateFromDirectory(startPath, zipPath);
  //How can I create it from a series of byte arrays?
  </code></pre>