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, 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?

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


eric reeves
Create a Deflater with the parameters new Deflater (Deflater.DEFAULT_COMPRESSION, true)
Thank you. True, I will not try already. Made support for several compression algorithms on the server. - djdave
Adobe AIR is urgently needed, and 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