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)
Author of Posts in the Saloon
posted 14 years ago
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