Hi all - is there a way to send data across a socket connection that is compressed automatically instead of pre-compressing the data and then sending it? Thanks!
CJP (Certifiable Java Programmer), AMSE (Anti-Microsoft Software Engineer)<br />Author of <a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi" target="_blank" rel="nofollow">Posts in the Saloon</a>
Carl Trusiak
Sheriff
Joined: Jun 13, 2000
Posts: 3340
posted
0
Sure, wrap the OutputStream created on the socket with a GzipOutputStream. Any byte array you write to it will be compressed and sent in one call. ------------------ I Hope This Helps Carl Trusiak, SCJP2, SCWCD