Hw can i include a new into existing Zip file

  • Thread starter Thread starter Toddler
  • Start date Start date
T

Toddler

I am using DynaZip DLL to zip a file programmatically.

Now I need to add new file into existing zip file using DynaZip technology



Can any one have any idea about this.



Thanks in advance

Regards

Toddler
 
I am using DynaZip DLL tozip a fileprogrammatically.

Now I need to add new file into existing zip file using DynaZip technology

Can any one have any idea about this.

Thanks in advance

Not sure how to do it using DynaZip, but with DotNetZip it's pretty
easy.

using (ZipFile zip = ZipFile.Read(zipFileName)
{
zip.AddFile("c:\\images\\personal\\7440-N49th.png", "images");
zip.Save();
}

The ZipFile.Read() method reads an existing zip file. You can then
add new entries or update existing ones.
 
Back
Top