c# - How to identify the binary compression type from the content? -
i trying restore files stored in ms sql database (used third party application has stopped support) image data type(byte arrays). write rows of byte arrays file convert know file extensions. of them not known believe compressed. since "cc_compress" string , random characters in file after conversion. wondering if possible find out compression method used , how can decompress before convert them.
following first bytes byte array: 0x43435f434f4d50524553530000000000000000000000010004f60000e4780000ec7c075c54c7f3f85ca10a8a204544796001519a0d4569414414011115238a079c80c21d5204224d632c51c19268628fc6a851638b9a88882d9604c5d83bb688a002564085fbcfbebdc71dcd16623effef2fa373b33b5b667676b6bc7dcb3b9ddff2e677db8d6f411d70060154cb34401514c043d4e5223a00ad80f2aa65321961b54494fd07ff5fc1c3750741304e430850a19b0b2ce8b0bfd8f16dd5019a43c88490097fc4fd1107f5404368003d740036b6e6b1d816de0c32598bb78639f89efddd20801aaa1c6e8cb60205e
and 43435f434f4d5052455353 part converts cc_compress
thanks in advance,
raw deflate-compressed data begins 32 bytes in (starting ec 7c). can use zlib decompress it.
Comments
Post a Comment