| Dart Home | PowerTCP Zip Compression for Active | Custom Development | Reply | PowerTCP Zip Compression for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Zip Compression for ActiveX Topic: Adding files to an existing zip file |
| dannywatkins From: bristol, United Kingdom Posts: 3 Member Since: 06/11/02 |
posted June 11, 2002 11:27 AM Hi, My application needs to add files to an existing zip file on a very frequent basis. This appears to be more difficult that I expected and I'd be grateful for some guidance. If I create a new filestore, and add files in the sequence Add, Zip, Add, Zip, they are OK. I subsequently re-run the program, reload the zip file into my FileStore, and add more files to it in the same sequence. However the original files become corrupted as soon as a zip operation is carried out ("Error #13001 : The file is not identified as a compliant zip file" when trying to extract the files). I note that in the ZipMan sample the entire archive is deleted and rezipped after every add operation. Surely this will represent a severe performance problem when the archive becomes quite large. Is there a way of adding new files to an existing zip file without having to start from scratch? Many thanks, Danny |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted June 11, 2002 12:41 PM Hi Danny, This should not cause an error unless you are zipping to the same file as the original (causing the original to be simultaneously read and written to). If a different name is selected, it should work ok. As far as a performance hit from clearing and re-zipping, the original archive is not deleted, nor is the entire archive being re-zipped. The original archive is copied into the Filestore(using Load), and then only the newly added files are zipped. -ken |
| Reply | PowerTCP Zip Compression for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|