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

Snappy Stream Identifier different in Java and NodeJS #211

@eliezercazarestravelport

Description

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions