Sahil Paudel
Sahil Paudel

Reputation: 474

LZ4 giving different compressed data for different languages

I am using lz4 to compress a data, that data is consumed by different application written in Java, Go & Python. Thankfully, libraries are available for the said languages.

My source data compression is done using Golang and the languages are decompressing and using it.

However, the issue is all of them gives different compressed data base64 string for same string. So the receiving applications are unable to get the expected data.

e.g Swift.lz4_compress("ABC") != Java.lz4_compress("ABC")

Is this an expected behaviour?

Thanks.

Upvotes: 1

Views: 384

Answers (0)

Related Questions