
May 25th, 2004, 06:00 PM
|
|
Contributing User
|
|
Join Date: Feb 2004
Location: London, England
|
|
you opened the local file (fobj) in text mode, so I am guessing that the file became corrupted when you saved it to disk.
Change it to
Code:
fobj = open( dest+"/devnews_images.zip", 'wb' )
and see if that makes any difference.
Alternatively use the urllib.urlretrieve function, which will handle everything for you.
Dave - The Developers' Coach
|