I assume you're just trying to compress data, not that you need "longs". The java.util.zip package contains classes for reading/writing compressed data using zip/gzip compression.
Packing bits into longs server/client transaction in Java
-
24-03-2022 - |
Pregunta
Are there libraries to compress bits into longs? I am trying to compress bits that I send over a network. Would it make more sense to just put the bits in a png file and transfer that?
Solución
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow