Zlib inflation

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Zlib inflation

Brian Murphy-Dye-3
I'm attempting to inflate a zlib compressed file. Performing:

(InflateStream on: ((FileDirectory default fileNamed: 'filename')  
binary)) upToEnd

raises a bad block length error. John McIntosh's tiff support package  
in squeakmap contains zlib support, but it reports 'no installer  
found for package' (I'm using squeak 3.9.)

  Any recommendations for decompressing zlib files inside squeak?

Thanks, Brian.

Reply | Threaded
Open this post in threaded view
|

Re: Zlib inflation

Andreas.Raab
Use ZLibReadStream not InflateStream. InflateStream only implements the
algorithm (LZ) not the actual file format (ZLib, GZ, Zip, etc).

Cheers,
   - Andreas

Brian Murphy-Dye wrote:

> I'm attempting to inflate a zlib compressed file. Performing:
>
> (InflateStream on: ((FileDirectory default fileNamed: 'filename')
> binary)) upToEnd
>
> raises a bad block length error. John McIntosh's tiff support package in
> squeakmap contains zlib support, but it reports 'no installer found for
> package' (I'm using squeak 3.9.)
>
>  Any recommendations for decompressing zlib files inside squeak?
>
> Thanks, Brian.
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Zlib inflation

Brian M
Heh, didn't even see that class. Thanks.


On Mar 8, 2007, at 12:03 PM, Andreas Raab wrote:

> Use ZLibReadStream not InflateStream. InflateStream only implements  
> the algorithm (LZ) not the actual file format (ZLib, GZ, Zip, etc).
>
> Cheers,
>   - Andreas
>
> Brian Murphy-Dye wrote:
>> I'm attempting to inflate a zlib compressed file. Performing:
>> (InflateStream on: ((FileDirectory default fileNamed: 'filename')  
>> binary)) upToEnd
>> raises a bad block length error. John McIntosh's tiff support  
>> package in squeakmap contains zlib support, but it reports 'no  
>> installer found for package' (I'm using squeak 3.9.)
>>  Any recommendations for decompressing zlib files inside squeak?
>> Thanks, Brian.
>
>