Karl von Laudermann
4/12/2006 3:40:00 PM
cmercier@gmail.com wrote:
> Hi,
>
> I'm trying to inflate a gzip file but for whatever reason, it always
> gives me the error "unexpected end of file". I tried with 3 different
> .gz file and I always get the same result. Can anyone help please?
<snip>
> f = File.open(zip_file)
You probably need to open the file in binary mode, i.e.:
f = File.open(zip_file, "rb")