[Python-au] Zipfile won't unzip file.

Glen Edward Wheeler gew75 at uow.edu.au
Thu Oct 30 13:18:00 CET 2003


  Are you perhaps using ASCII copy instead of binary?  ASCII copying may
cause unwanted conversion.

  HTH,
  Glen

On Thu, 30 Oct 2003, Duane Hennessy wrote:

> Hi,
> 	I've been developing a lottery system using Python COM to a web page.
> Works fine until I have to download a Zipfile from Tattersalls. I use
> urllib module with the following line:
>
> page = urllib.urlopen('http://www.tattersalls.com.au/files/TattsNum.zip')
>
> downloads fine but the zipfile module will not unzip it and says there
> is a problem with the file. When I download the file via the browser use
> the zipfile module to unzip the browser downloaded file it has no
> problems opening the zip file then.
>
> Any ideas?
>
> I've also just downloaded Python 2.3.2 to see if that helps any.
>
> Duane Hennessy
> Cleveland, Queensland, Australia.
>
>
> _______________________________________________
> python-au maillist  -  python-au at starship.python.net
> http://starship.python.net/mailman/listinfo/python-au
>
>





More information about the python-au mailing list