We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.Save Large File Corruption

Hi There, When Archiving file is corrupted when the size is more than 5 MB. If it is less than 5MB file seems working as expected. File size is cutting off when it is more than 5MB. For 20 MB file i see 5MB once unzip. Please find below code.

using Aspose.Zip;
using Aspose.Zip.Saving;

Console.WriteLine(“Hello, World!”);

Archive archive = new Archive(new ArchiveEntrySettings(encryptionSettings: new TraditionalEncryptionSettings(“12345”)));

// Add files to the archive
//archive.CreateEntry(“Test.xlsx”, “C:\Temp\Test.xlsx”);
archive.CreateEntry(“Test.xlsx”, “C:\Temp\smallFIle.xlsx”);

// save the archive
archive.Save(“C:\Temp\password_protcted.zip”);

Hello @ak1234
This happens because of limilations of trial version.
If you want to test Aspose.ZIP without evaluation version limitations, you can request a 30 Day Temporary License.

Thank you that helped