-
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks