Develop and Download Open Source Software

Back to Forum List
Back to this Forum

RSS feed of this forum [RSS]RSS for this Forum
RSS feed of this forum thread [RSS]RSS for this Thread

Discussion Forums: 雑談場


Forum posts/thread author names displayed like this are non-Login Users' posts (Post from non SourceForge.JP user).

Subject:[#60553] 7-ZIPでエンコードした7zをLZMA SDKで展開する方法

Date:2011-11-15 18:50By: orimori (orimori)
7zファイルを一括展開するソフトウェアの開発を試みています。
(職場での作業を効率化するためのものであり、商用ソフトではありません)

LZMA SDKのソースコード(ver9.20 Java)でテストしているのですが
うまくいきません。

【テスト】
・1KB程度のtxtファイルの入ったフォルダを
 7-ZIP (9.22 beta)で圧縮し、7zを作成。
・作成した7zファイルをLZMA SDK(LzmaAlone.java)で
 デコードしようとするが、失敗。

【原因】
 600MB以上のメモリ領域が要求され、OutOfMemoryErrorが発生する。
 LzmaAloneを使ったデコードでは、入力ファイル先頭のプロパティ情報に従い
 dictionaryの領域を確保するようになっているが、
 ここに許容不可能な数値が入っている。
(LZMA SDKでエンコした7zは、7-ZIPでもLZMA SDKでもデコードできました)

LZMA SDKでエンコードした7zファイルと
7-ZIPでエンコードした7zファイルでは、形式が異なるのでしょうか?
もしくは、私のデコードの設定などに不備があるのでしょうか?

Post a message to this thread:
(follow up to message [#60553])

Subject:



Non-login user's post can not identify who are you. If you want to display your name on the post, please input your name.
(If you leave this blank, your message's author will display as Anonymous.)
Message:

HTML tags will display in your post as text
You are posting anonymously because you are not [logged in]