Hw can i include a new into existing Zip file

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
 
C

Cheeso

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top