Archived Forum Post

Index of archived forum posts

Question:

Decompress a ZIP Entry

Dec 18 '13 at 09:38

My company used to use a product called DynaZip which is no longer supported. Through trial and error I have found out that most likely the data stored in our databases is in ZIP terms, a single Chilkat ZipEntry, as its header signature is 50 4B 01 02 14 00 14 00 00 00 08 00. Is there any way I can use Chilkat to continue to compress and decompress our single entry "files" (we actually store those entries in a database as a BLOB)?

Any help will be greatly appreciated.

UPDATE: I tried this:

  var zip2 = new Zip();
  zip2.NewZip("T:\\T2.zip");
  zip2.AppendCompressed(String.Format("T{0}.bin", record.ARCHIVED_FILE_BLOB), data);

but am getting a Chilkat error:

ChilkatLog:
  AppendCompressed:
    DllDate: Aug 15 2013
    ChilkatVersion: 9.4.1.42
    UnlockPrefix: BISOFTZIP
    Username: BISWS07:Darek
    Architecture: Little Endian; 64-bit
    Language: .NET 4.0 / x64
    VerboseLogging: 0
    decodeErrNum: 7
    inflate decode error.
    inflateBlock failed.
    Inflate from source failed.
    Success.
  --AppendCompressed
--ChilkatLog

Answer

I have found an answer here: http://stackoverflow.com/questions/20639355/processing-zip-entries-without-central-control-file/20639490?noredirect=1#20639490