Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Snappy Stream Identifier different in Java and NodeJS #211

Open
eliezercazarestravelport opened this issue Aug 5, 2023 · 0 comments
Open

Comments

@eliezercazarestravelport

Hi Kesla,

I am loving your Snappy package for Node.

The only thing that I can't get working, it's that when we compress in Java we get this stream identifier:
\x82SNAPPY\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\

But when we compress with NodeJS, we get this other stream identifier:
�\x06\x00\x00sNaPpY\x00�\

So when we store from NodeJS in Redis, we can't get it out of Redis, because it seems Redis recognizes the first Stream Identifier only.

Any ideas? I am pulling my hair out. I am not even good with Streams and Byte Arrays.

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant