Hi,
I am trying to decompress a file using boost::iostreams (1.35.0) library
built with zlib-1.2.3 . I am able to decompress the file with other
utilities but this program throws me an exception saying "gzip error". I
am able to uncompress other gzipped files. What could be the reason for
the exception? Any help is very much appreciated.
Thanks
Lloyd
The decompress function is also added here
==========================================
bool ParseHttp::Decompress(const char* inBuff, int inLen,char** outBuff,
int* OutLen,int type)
{
enum
{
CHUNK=4096
};
if(inBuff==NULL)
return false;
filtering_streambuf<input> in;
switch(type)
{
case GZIP:
in.push(gzip_decompressor());
break;
case ZLIB:
in.push(zlib_decompressor());
break;
}
in.push(boost::make_iterator_range((const char*)inBuff,(const
char*)inBuff+inLen));
vector