|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
gzip for compressionHi List,
I want to use gzip for my project development, wherein i am planning to use gzip for compression and decompression of HTML message exchanges. I am using windows xp and planning to go ahead with the following steps: - Build the gzip source code on windows. - Plug / Link the gzip libraries to my project source code. - Use the API's exported by gzip for compressing and decompressing the HTTP body. So, Please point at the source code location and is my approach regarding usage of gzip correct? Thanks. Kishore Yahoo! recommends that you upgrade to the new and safer Internet Explorer 8. http://downloads.yahoo.com/in/internetexplorer/ |
|
|
Re: gzip for compressionkishore sowdi wrote:
> I want to use gzip for my project development, wherein i am planning > to use gzip for compression and decompression of HTML message > exchanges. Are you aware that HTTP may already optionally compress messages? > I am using windows xp and planning to go ahead with the following steps: > - Build the gzip source code on windows. > - Plug / Link the gzip libraries to my project source code. > - Use the API's exported by gzip for compressing and decompressing the HTTP body. Use the zlib compression library instead. http://www.zlib.net/ > So, Please point at the source code location and is my approach regarding usage of gzip correct? http://www.gzip.org/ Bob |
|
|
Re: gzip for compressionHi bob,
yes, zlib is a good idea. But i have one question regarding zlib, below is the prototype of uncompress( ): int uncompress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen); where source and sourceLen are the compressed message to be uncompressed and its length. and dest and destLen are the un-compressed message after decompression and its length. destLen gets updated with the actual decompressed size if call to uncompress() is successful. How much buffer size should be allocated and passed to uncompress() that is good enough to hold the uncompressed data? Since compressor has to convey this info to decompressor and i dont see any such mechanism in zlib, i am finding difficult to pass "dest" and "destLen" to uncompress(). Regards, Kishore ________________________________ From: Bob Proulx <bob@...> To: kishore sowdi <kishore_r_s@...> Cc: bug-gzip@... Sent: Monday, 20 July, 2009 9:46:18 PM Subject: Re: gzip for compression kishore sowdi wrote: > I want to use gzip for my project development, wherein i am planning > to use gzip for compression and decompression of HTML message > exchanges. Are you aware that HTTP may already optionally compress messages? > I am using windows xp and planning to go ahead with the following steps: > - Build the gzip source code on windows. > - Plug / Link the gzip libraries to my project source code. > - Use the API's exported by gzip for compressing and decompressing the HTTP body. Use the zlib compression library instead. http://www..zlib.net/ > So, Please point at the source code location and is my approach regarding usage of gzip correct? http://www.gzip.org/ Bob Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com |
| Free embeddable forum powered by Nabble | Forum Help |