How to compress a string in RFC 1951?

Asked byt tara turk haynes

Trying to write a client in java for my socket server in php. I use gzinflate / gzdeflate functions on the server. On the client, I used java.util.zip.Deflater, but gzinflate scolds “data error”, and gzuncompress unpacks it with a bang. All day trying to find information on DEFLATE in java, but to no avail.

What should I use in order for gzinflate to unpack what I sent from the client?

Comments:
It seems that Deflater in java uses the RFC 1950 protocol. - t

Answers

eric reeves
Create a Deflater with the parameters new Deflater (Deflater.DEFAULT_COMPRESSION, true)
Replies:
Thank you. True, I will not try already. Made support for several compression algorithms on the server. - djdave
Adobe AIR is urgently needed, and adobe.com is a website. What to do? :: Who can order a plugin for Eclipce? :: A program for organizing intra-editorial communication? :: What topic to choose for a diploma? :: How can an ordinary Windows XP user install programs?
Leave Repply forHow to compress a string in RFC 1951?
Useful Links