Adding to existing Zip File....
I need to be able to open an existing Zip file and add new files to it without
overwriting what is already there. I keep overwriting the file, I am passing
a file output stream to the Zipoutput stream and I set it for append. I
tried playing with the offset but was unsuccessful, any help would be greatly
appreciated!
Thanks!
Bill Carpenter
Re: Adding to existing Zip File....
I don't know if you've ever observed how commercial products like WinZip do
this. Try using one to append a new file to an existing zip archive.
You'll notice (through the status line) that it creates an entirely new
archive that contains the old contents plus the additions. I believe this
is what you will have to do too.
(A zip archive always has its directory at the end. So appending something
after that breaks the file format.)
PC2
Bill Carpenter <dragon@darkmage.com> wrote in message
news:3a7274e8$1@news.devx.com...
>
> I need to be able to open an existing Zip file and add new files to it
without
> overwriting what is already there. I keep overwriting the file, I am
passing
> a file output stream to the Zipoutput stream and I set it for append. I
> tried playing with the offset but was unsuccessful, any help would be
greatly
> appreciated!
>
> Thanks!
>
> Bill Carpenter