I have a Java backend that uses Inflater. I wish to feed data to it via Node.js.
Is there any equivalent to the Deflater class?
EDIT: I should clarify a little. I have tried using https://github.com/dankogai/js-deflate and then base64 encoding the result and passing it to a very simple Java program that base64 decodes it and tries to inflate it (creating a simple emulation of the backend), but I keep getting a exception:
java.util.zip.DataFormatException: unknown compression method
at java.util.zip.Inflater.inflateBytes(Native Method)
at java.util.zip.Inflater.inflate(Unknown Source)
at java.util.zip.Inflater.inflate(Unknown Source)
And I know the Base64 encoding process is working correctly on both ends.
I should also note that I cannot change the Java backend.