#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2006
    Posts
    18
    Rep Power
    0

    GZip and Deflaters


    Ok so I have finished reading in the HTTP response the server is spitting back at me, and it's all appended to my string buffer, but I have gzip and deflate as an Accept-Encoding as part of my HTTP request, now, if the server responds with code that is GZip'd or Enflated, how would I go about uncompressing this from my string buffer? I'm using sockets; not URL or anything, and I've found little to no help searching through the forums or with Google. Help please! =P
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2005
    Location
    Santa Barbara, California
    Posts
    79
    Rep Power
    16
    You could try something like java.util.zip.GZIPInputStream

    not sure if it's the solution you are looking for though.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2006
    Posts
    18
    Rep Power
    0
    Originally Posted by pixelized
    You could try something like java.util.zip.GZIPInputStream

    not sure if it's the solution you are looking for though.
    Yea I saw java.util.zip.Deflater and java.util.zip.GZIPInputStream; but they seemed to only want File locations as inputs, although I could be wrong (and usually am). LoL.

IMN logo majestic logo threadwatch logo seochat tools logo