This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes String Compression Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "String Compression" Watch "String Compression" New topic

String Compression

Noam Hayafe

Joined: Mar 13, 2002
Posts: 1
I need to compress a string into a ZIP archive, and then send this string to a remote location( either through socket or to a browser window). I built a function that recieves a String, and using the Defalte function in When I use the ".setInput(byte[])", i get a StackOverflow...(blablabla). in the java.sun site, its a known bug. can you help me find a different way to compress a String into a Zip archive?
Thanks in advance,
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Are you Noam Chomsky?
My money is on Dave Vick. Cindy is my second guess.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Dirk wins!!!
Welcome to the Java Ranch, we hope you’ll enjoy visiting as a regular however,
your name is not in keeping with our naming policy here at the ranch. Please change your display name to an appropriate name as shown in the policy.
Thanks again and we hope to see you around the ranch!!

I agree. Here's the link:
subject: String Compression
Similar Threads
Zip a zip
Need help w/ZIP archives: why no compression?
Extract .Z files
diff.between jar,war and zip file
Zip file archive comment with extended ASCII characters