t-mat / lz4mt

Platform independent, multi-threading implementation of lz4 stream in C++11
Other
199 stars 47 forks source link

Invalid Magic Number #36

Open Nitika123 opened 6 years ago

Nitika123 commented 6 years ago

I have used https://github.com/lz4/lz4-java for compression of data. I am decompressing the data with your library. When I decompress it shows invalid magic number.

The data I am using to decompress is "\F8\00\81\A2\n\DC\00\B40.05346\00\CB4\A42.43\A268\A14\C0\00\90\A820170820" which is stored in a .txt file.

Cyan4973 commented 6 years ago

lz4mt produces and decodes lz4 frame format compliant files and bytestreams.

Reading your traces, data to decompress is not compliant with this format. It could be that data generated using lz4-java is using its own (different) frame format.