Home Forums .NET libraries Xceed Zip & Real-Time Zip for .NET How to restore spanned zips?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #19334 |

    Hi,

    I’m trying to restore files from a zip spanned over multiple disks. I either get the “wrong disk” error or the “The zip end header signature could not be found”. What am I doing wrong:

    <i>
    ZipArchive zip = new ZipArchive(new DiskFile(strSourcePath));
    DiskFolder folder = new DiskFolder(strTargetPath);
    zip.AllowSpanning = true;
    zip.DefaultDecryptionPassword = “*****”;
    zip.CopyFilesTo(folder, true, true);
    </i>

    Thanks.

    Imported from legacy forums. Posted by Insider (had 2111 views)

    User (Old forums)
    Member
    Post count: 23064

    Hello Insider.

    You need to create yourself a ZipEvents instance, advise for the DiskRequired event, and pass this instance to the CopyFilesTo method. In your event handler, you must prompt the user for the proper disk.

    Hope this helps!

    Imported from legacy forums. Posted by Martin (had 3067 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.