in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Zip error When adding a 15Mb file to a zip

Last post 12-11-2007 1:54 AM by C1_JamesS. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-04-2007 10:24 AM

    Zip error When adding a 15Mb file to a zip

    Hi,

    I am getting a "System.IndexOutOfRangeException" when one of the file that i am adding to the zip is about 15Mb.

    I can't find any size isse any where.

    has someone got any idear.

    thanks

     code:

     C1ZipFile zip = new C1ZipFile();
     zip.Create(ReleaseFolder + @"\DiagnosticTester.zip");
     string[] Files = Directory.GetFiles(dir + @"\", "*.*");
     foreach (string file in Files)
     {
        zip.Entries.Add(file, 2);
     }
     zip.Close();

    (i am using the C1.C1Zip.2.Dll)

  • 12-11-2007 1:54 AM In reply to

    Re: Zip error When adding a 15Mb file to a zip

    Hello,

    I have just tested the same and was able to zip a file with size of 20 MB.

    I would request you to please let me know the version of C1Zip you are using.

    Best Regards,

    James Smith

    <atramard> wrote in message news:200092@10.0.1.98...

    Hi,

    I am getting a "System.IndexOutOfRangeException" when one of the file that i am adding to the zip is about 15Mb.

    I can't find any size isse any where.

    has someone got any idear.

    thanks

     code:

     C1ZipFile zip = new C1ZipFile();
     zip.Create(ReleaseFolder + @"\DiagnosticTester.zip");
     string[] Files = Directory.GetFiles(dir + @"\", "*.*");
     foreach (string file in Files)
     {
        zip.Entries.Add(file, 2);
     }
     zip.Close();

    (i am using the C1.C1Zip.2.Dll)



    http://helpcentral.componentone.com/cs/forums/p/73711/200092.aspx#200092

Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.