Home Forums .NET libraries Xceed Zip & Real-Time Zip for .NET Copy Items to ZipFIle

Mots-clés : 

3 sujets de 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • maklei
    Participant
    Post count: 1
    #44463 |

    Hi,

    I try to zip a folder with the sample code provide in the documentation, the zipfile is created but it’s empty file.

    using Xceed.Zip;
    using Xceed.FileSystem;

    DiskFolder diskFolder = new DiskFolder( @ »c:\temp » );
    diskFolder.CopyFilesTo( new ZipArchive( new DiskFile( @ »c:\test.zip » ) ), true, true );

    can you please help me to understand why the zip is empty?

    thanks.

    redserpent7
    Participant
    Post count: 3

    I have the same exact issue, it seems that the whole CopyTo/CopyFilesTo does not work both ways. I cannot extract files from a zip and cannot add them to the archive.

    Even the provided ZipDemoCS sample application does work and no exceptions are getting raised.

    Streaming seems to work fine.

    Fawzi [Xceed]
    Membre
    Post count: 722

    Hi,

    There is a bug in the component that has since been fixed in the latest version. You can download the latest build from our website from the following link:

    http://forums.xceed.com/latest-net-libraries

3 sujets de 1 à 3 (sur un total de 3)
  • Vous devez être connecté pour répondre à ce sujet.