How do I zip a collection of Byte Arrays in C#?

Feb 28, 2011 at 8:22 PM

I am using DotNetZip for the first time. Any help would be greatly appreciated.

I have an ArrayList of Byte[] objects.

I want to to iterate thru my ArrayList and add each Byte[] object to my zip file.

 

Here is what I have so far (only a start):

 

private void GenerateMergedZipFile(ArrayList files,string finalZipFormat)

{

 using (ZipFile zip = new ZipFile())

 

{

 foreach (Byte[] inputFile in files)

{

 

  What happens here?

 

}

}

 

Thank You!