Extracted files much larger

Sep 4, 2009 at 9:47 AM
Edited Sep 4, 2009 at 11:18 AM

When extracting files the output file(I have only one file in archive) is almost twice as large as the original file.

http://pastebay.com/51776

The 7z.dll is the one from here http://sevenzipsharp.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=32291 and NOT from the official 7zip.

Also, does any one know what the SevenZipCompressor.CustomParameters name for DictionarySize and WordSize is?

 

EDIT: Nevermind found my bug! But still what are the DicSize and WordSize param names.

Coordinator
Sep 4, 2009 at 12:04 PM

You can always refer to 7-zip.chm documentation ("-m (Set compression Method) switch" topic).

DictionarySize: "d". For example,

tmp.CustomParameters.Add("d", "24");

means that the dictionary size is 2^24=16mb. Max is 2^30.

Word size cannot be set as it is in the docs.