Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GZIPOutputStream - size of compressed data

 
ram ragu
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I compress data using GZIPOutputStream. Is there any way to find out the size of the compressed data?
here is what I do
sb ( StringBuffer )has some data...

GZIPOutputStream gzos =
new GZIPOutputStream(response.getOutputStream());
gzos.write(sb.toString().getBytes());
gzos.close();
Kindly let me know.. I need to find out how good the compression is..
Ram
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic