Re: Zip File Woes

2007-06-27 Thread Dave Kuhlman
Jerry Hill wrote: > On 6/27/07, Robert Rawlins - Think Blue > <[EMAIL PROTECTED]> wrote: >> zip = zipfile.ZipFile('Media/Media.zip', 'r') > > Shouldn't you open this file in binary mode? It shouldn't make > any difference on unix machines, but will possibly break under > windows. T

Re: Zip File Woes

2007-06-27 Thread Jerry Hill
On 6/27/07, Robert Rawlins - Think Blue <[EMAIL PROTECTED]> wrote: > zip = zipfile.ZipFile('Media/Media.zip', 'r') Shouldn't you open this file in binary mode? It shouldn't make any difference on unix machines, but will possibly break under windows. That may also explain why it work

RE: Zip File Woes

2007-06-27 Thread Robert Rawlins - Think Blue
Just as an update guys: Before my zip code featured below I have another piece of code that creates the zip file from a binary string, like this: #f3 = open("Media/Media.zip", "wb") #f3.write(base64.decodestring(MediaBinary)) #f3.close Now, wi