Welcome to the Xceed Community | Help
Community Search  
More Search Options

Handling xevInsertDisk event with multipart zips

Sort Posts: Previous Next
  •  09-11-2009, 1:39 PM Post no. 23901

    Handling xevInsertDisk event with multipart zips

    I have a multipart ZIP file which I believe was created with winzip.  The files are named: file.z01, file.z02, ... file.z09, file.zip and file.z01 through file.z09 are 5 MB apiece and file.zip is 3 MB.  If I try to uncompress or list the contents of the zip there is an xevInsertDisk event raised, but I can't seem to figure out how to tell it the appropriate file it should go to next.  Even if I change bDiskInserted to true it just continues raising the insert disk events again.

    I discovered from reading elsehwere that pkzip/winzip expect the last file in the series to have the .zip extension.  Your docs (http://doc.xceedsoft.com/products/Xceedfilesystem/Xceed.Zip~Xceed.Zip.SplitNameFormat.html) talk about the XCeed ActiveX formats expecting the first file to have .zip and subsequent files to have .z02, z03, ....  After discovering this I did a test where I renamed file.zip -> file.z10 and file.z01 -> file.zip, and at that point I no longer get the insert disk event and XCeed will process this correctly.  Unfortunately, when I do that WinZip then complains that the archive is corrupt.  Since most of my users have WinZip I don't want to do that, and I'm leery about temporarily renaming the files during the processing in case the user terminates things and I don't get to revert it back to the original names.

    Now I'm using the XCeed Zip Compression Library v 6.1.7504.0, and with this I can't find any event/property to set which tells it to use this winzip/pkzip naming convention.  Is there any way to accomplish this without renaming the files?

  •  10-09-2009, 4:09 PM Post no. 24402 in reply to 23901

    Re: Handling xevInsertDisk event with multipart zips

    Hi Keith,

    Unfortunetaly, the property SplitNameFormat exists only for our .Net Zip Components.

    Since you are using our Active X Zip Library, you will have to manually code this functionality to your application after the zip operation is done:

    PseudoCode:  (exactly like what u did)

    1) GetFiles on the folder ( that contains the split files)

    2) Rename (basename).z01 to (basename).zip

    3) Rename  (basename).zip to (basename).highestExtensionNumber

    Regards,

    Alain,

    Technical Support


    Regards,

    Alain Jreij,

    Web Developer,

    Xceed Software Inc
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.