When I try to create a 7z archive with:
outArchive7z = SevenZip.openOutArchive7z();
outArchive7z.setLevel(level);
outArchive7z.createArchive(new RandomAccessFileOutStream(raf),//
items.length/**/, new CallBack7z());
I get an Exception when the compression level is greater than 3:
2021-03-01 10:01:19.134 26545-26834/com.techniwork.fastsharing W/System.err: 7z-Error occurs:
2021-03-01 10:01:19.134 26545-26834/com.techniwork.fastsharing W/System.err: HRESULT: 0x8007000E (Out of memory). Error creating '7z' archive with 12 items
2021-03-01 10:01:19.134 26545-26834/com.techniwork.fastsharing W/System.err: at net.sf.sevenzipjbinding.impl.OutArchiveImpl.nativeUpdateItems(Native Method)
2021-03-01 10:01:19.134 26545-26834/com.techniwork.fastsharing W/System.err: at net.sf.sevenzipjbinding.impl.OutArchiveImpl.doUpdateItems(OutArchiveImpl.java:141)
2021-03-01 10:01:19.134 26545-26834/com.techniwork.fastsharing W/System.err: at net.sf.sevenzipjbinding.impl.OutArchiveImpl.createArchive(OutArchiveImpl.java:150)
I don't have this exception for .zip archives.
When I try to create a 7z archive with:
I get an Exception when the compression level is greater than 3:
I don't have this exception for .zip archives.