I
I
Ilya Plotnikov2012-08-01 14:13:13
Java
Ilya Plotnikov, 2012-08-01 14:13:13

How to compress a string in RFC 1951?

I'm trying to write a client in java for my socket server in php. I am using the gzinflate/gzdeflate functions on the server. On the client, I used java.util.zip.Deflater, but gzinflate swears "data error", and gzuncompress unpacks with a bang. Been trying all day to find info on DEFLATE in java but no success.

What should I use to get gzinflate to decompress what I sent from the client?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
apangin, 2012-08-01
@apangin

Create a Deflater with parameters new Deflater(Deflater.DEFAULT_COMPRESSION, true)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question