🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7561

Re: Compressed objects thru sockets??

#7561
From: Torsten Welches
Date: Thu, 07 Jun 2001 06:17
57 lines
2461 bytes
Mark,

I just had a look at the article you mentioned and saw that the
author has now provided a working solution, right?
Problem solved?

Torsten

"MarkW" <xx@yy.com> wrote:
>Hi Torsten,
>i�ve just looked at the article in JGuru again and the author states that
>your solution wouldn�t work.
>Have a look at it (see link in original mail): he explains why it can�t
>work.
>Greetings,
>Mark
>
>"Torsten Welches" <torsten.welches@who.cares.netcologne.de> schrieb im
>Newsbeitrag news:3b1b5e38_2@dnews...
>> Mark,
>>
>> just wrap your ObjectOutputStream around a
>> java.util.zip.DeflaterOutputStream.
>>
>>     DeflaterOutputStream dos = new
>> DeflaterOutputStream(socket.getOutputStream());
>>     ObjectOutputStream oos = new ObjectOutputStream(dos);
>>
>> Torsten
>>
>> MarkW schrieb in Nachricht <3b17b482$2_2@dnews>...
>> >Hi people,
>> >i�m trying desparately to send ** compressed ** objects thru an
>> >ObjectOutputStream.
>> >How can i gzip the objects on the server and then ungzip them on the
>> >client??
>> >I�ve seen lots of examples of zipping files etc. but none of zipping
>> >objects.
>> >Of course I would have loved to directly compress the OutputStream but
>this
>> >doesn�t apparently work
>> >(see www.jguru.com/faq/view.jsp?EID=3823) the author suggests a solution
>> but
>> >I need a code-example in order to understand.
>> >
>> >Anybody got an idea?
>> >Greetings,
>> >Mark
>> >
>> >
>>
>>
>>
>>
>
>
Technical Details
Message-ID: <3b1f1c67$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews
References: <3b17b482$2_2@dnews> <3b1b5e38_2@dnews> <3b1c900b_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f74b3,2ce7263a57c8a607
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-06-06 23:41:31 PST
From: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Sender: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Reply-To: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Subject: Re: Compressed objects thru sockets??
Newsgroups: borland.public.jbuilder.java.language
X-User-Info: 193.158.55.74 193.158.55.74    
References: <3b17b482$2_2@dnews> <3b1b5e38_2@dnews>  <3b1c900b_1@dnews> 
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3b1f1c67$1_1@dnews>
Date: 6 Jun 2001 23:17:11 -0700
X-Trace: dnews 991894631 207.105.83.65 (6 Jun 2001 23:17:11 -0700)
Lines: 58
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews