The Artima Developer Community
Sponsored Link

Java Answers Forum
compress/decompress using gzip

1 reply on 1 page. Most recent reply: Nov 18, 2002 11:21 PM by Mihail Marinov

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Mag

Posts: 1
Nickname: myra
Registered: Nov, 2002

compress/decompress using gzip Posted: Nov 17, 2002 6:09 AM
Reply to this message Reply
Advertisement
Hi,

I need to compress the signed message which is an object using gzip compression and later on decompress it. How can I do this? Do I need to write the object to a file in order to compress it? Can I do this without writing to a file?

Thanks


Mihail Marinov

Posts: 2
Nickname: liahim
Registered: Mar, 2002

Re: compress/decompress using gzip Posted: Nov 18, 2002 11:21 PM
Reply to this message Reply
> Hi,
>
> I need to compress the signed message which is an object
> using gzip compression and later on decompress it. How can
> I do this? Do I need to write the object to a file in
> order to compress it? Can I do this without writing to a
> file?
>
> Thanks


You could use java.io.ObjectInputStream/java.io.ObjectOutputStream to serialize/deserialize your object than compress/decompress it with java.util.zip.GZIPInputStream/java.util.zip.GZIPOutputStream.

Flat View: This topic has 1 reply on 1 page
Topic: Challenging Task !!! Unification In JAVA Previous Topic   Next Topic Topic: can a method return more than one value

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use