c# - Decompress Zlib data -


I am currently trying to compress some bytes with. code in Zlib . I have read from paragraph 3 pages 1-12, it indicates that byte by Zlib in the .mat file is compressed.

So, my question is, there are some APIs or libraries in C # that can uncompress the bytes. If I got a group of bytes, then

  6236 20e6 0062 1606 0860 85f2 1981 980b 4cb3 30e4 25e6 a60 a 40f 9 2545 99 9 3 9 f1   

An SByte array, how could I dismiss them?

I even tested some libraries online so they can do whatever they want, rather than some bytes, the whole file is uncompressed ....

I I am quite new about this honor. Any help is appreciated.

You can use InflaterInputStream from .mat file has a 0x88 length header, so you have to leave it. I have taken a sample file from here.

  byte [] data = file. Read AllBytes ("c.mat"). Skip (0x88) .oir (); Byte [] Disintegrated Data = New Byte [10000]; Int decompressedLength = 0; (Using the InflatterInputStream inflater = New InflaterInputStream (Memory)) (using MemoryStream Memory = New MemoryStream (Data)) DCPD Langel = Inflator. Reed (Decompressed Data, 0, DecompressedData. Lang);    

Comments

Post a Comment

Popular posts from this blog

jasper reports - How to center align barcode using jasperreports and barcode4j -

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -