2 Replies Latest reply: Nov 23, 2012 11:58 AM by FLAdude RSS

    Decompressing LZMA .zip files always gives "System out of Memory" on AIR.

    FLAdude Community Member

      AIR is supposed to support LZMA compression in addition to Deflate, but it has an error every time I try to use it. ZIPs using the Deflate method decompress just fine.

       

      aByteArray.uncompress("lzma");

      Should decompress the LZMA compressed data, but always just has a #1000 System is Out of Memory error.

       

      I have tried skipping the standard header in the zip that should be 2 bytes version info, extra properties length (n) and a filed of the length of n;

      Even when I do that, the same thing happens. I have tried deducting the LZMA header length from the general compressed data size in the ZIP header as well and that makes no difference. I am also above AIR 3.3 so that should not be the issue. I also tried setting a small 'library size' when compressing. LZMA is supposed to be "suited for embedded applications" so mobile devices should surly be able to handle it.

       

      The header with the 13 byte header i believe is only for certain stand alone LZMA formats, so that should not apply.

       

      What am I doing wrong? How do I make it work?