Hi,
I would like to compress the data(object) that I would be sending from EJB to client(java). I don't want to create a zip file of that data and send it. I am looking for compressed byte stream/object to be send to the client. At the client I decompress byte stream/object. Help me if any one has idea about this.
Thanks in advance.
-Janardhan.
-
Compress & Send Object from EJB -> Client (1 messages)
- Posted by: Janardhana Rao Kotha
- Posted on: April 15 2005 11:47 EDT
Threaded Messages (1)
- Compress & Send Object from EJB -> Client by sawan parihar on April 18 2005 00:00 EDT
-
Compress & Send Object from EJB -> Client[ Go to top ]
- Posted by: sawan parihar
- Posted on: April 18 2005 00:00 EDT
- in response to Janardhana Rao Kotha
Hi,
Form this link you will get an idea about how to compress the response.
http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html
Well this link explains about the filters but you can use GZIPInputStream, GZIPOutputStream etc to compress the response. Just curious why you want to compress it.
Hope that helps.
Sawan