The following routine will read an ArrayList of Byte and load each entry into the zip file.
When I use zip.save(somefilename) it saves my zip file to my disk and looks perfect.
But, now I need to return a byte from this method which contains the zip file.
How would I do this?
Any help will be greatly appreciated.
private byte GenerateMergedZipFile(ArrayList files, string byteInfo, string finalZipFormat, string ZipFileName)
byte result = null;
using (ZipFile zip = new ZipFile())
int ctr = 0;
foreach (Byte inputFile in files)
// Add the stream into the zip entry.
ZipEntry e = zip.AddEntry(byteInfo[ctr] + "." + finalZipFormat, inputFile);
// Save the zip file.