title: Add byte[] to ZipFile as file.jpg with HttpResponse
body: <p><strong>I've got this code snipped that download successfully:</strong></p>
  
  <pre><code>byte[] bytes;
  bytes = Convert.FromBase64String(lehrling.passfoto);
  Response.Clear();
  Response.Cache.SetCacheability(HttpCacheability.NoCache);
  Response.ContentType = "image/jpg";
  Response.AddHeader("content-disposition", "attachment; filename=" + lehrling.vorname + "." + lehrling.nachname + ".jpeg");
  Response.OutputStream.Write(bytes, 0, bytes.Length);
  Response.End()
  </code></pre>
  
  <p>This works just fine. I get a jpeg file out of it.  Now:</p>
  
  <p><strong>I created a for-loop that executes the code shown above for each bytearray:</strong></p>
  
  <pre><code>    for (int i = 0; i &lt; anzahlBilder; i++)
      {
           //My Code here
      }
      Response.End()
  </code></pre>
  
  <p>I get <code>anzahlBilder</code> from somewhere else. its not important for my question. I put <code>Response.End()</code> outside of my for-loop because otherwise it ends after 1 <code>image</code> got downloaded. </p>
  
  <p><strong>To Zip:</strong></p>
  
  <p>Now i want to create a .Zip file, which contains all my images. I dont know how to do it. Any Suggestions?</p>