![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
01/08/2012, 13:18
|
![Avatar de chuidiang](http://static.forosdelweb.com/customavatars/avatar75810_2.gif) | Colaborador | | Fecha de Ingreso: octubre-2004
Mensajes: 3.774
Antigüedad: 20 años, 4 meses Puntos: 454 | |
Respuesta: Comprimir datos al vuelo para enviarlos por un socket bueno, no he probado, pero se me ocurre lo siguiente .... para envio puedes hacer esto
new ObjectOutputStream(new DeflaterOutputStream(socket.getOutputStream());
y en el lado que lees
new ObjectInputStream(new DeflaterInputStream(socket.getInputStream());
Se bueno. |