Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: how to gunzip a string ?

Thread Tools

Re: how to gunzip a string ?

Andreas Kuntzagk
Posts: n/a
On Wed, 30 Jul 2003 16:16:32 +0200, Bill Loren wrote:

> I guess I really need some sort of library that will do a gzip decoding to
> a compressed string.
> assume that I have a gzipped_string_reply I got from an HTTP server, It'd
> be superb to have a gunzip class that takes it and return its decoded
> equivalent.

You could put your string in an cStringIO:

c_string= cStringIO.StringIO(compressed_string)

HtH, Andreas
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How to "gunzip-iterate" over a file? kj Python 3 07-30-2009 12:02 PM
Gzip - gunzip using zlib flebber Python 2 06-09-2007 05:46 PM
zlib.decompress cannot, gunzip can Python 2 03-01-2005 08:31 AM
Re: how to gunzip a string ? Bill Loren Python 0 07-31-2003 09:11 AM