PHP Classes

Cannot open zipped files in mac

Recommend this page to a friend!

      Zip Stream  >  All threads  >  Cannot open zipped files in mac  >  (Un) Subscribe thread alerts  
Subject:Cannot open zipped files in mac
Summary:Zip files created with zipstream cannot be opened in Mac
Messages:40
Author:brian
Date:2011-05-21 02:52:08
Update:2014-07-16 15:23:55
 
  1 - 10   11 - 20   21 - 30   31 - 40  

  11. Re: Cannot open zipped files in mac   Reply   Report abuse  
Picture of brian brian - 2011-07-01 17:07:21 - In reply to message 10 from Adam Docherty
Hi,

actually i believe the creation of zip on a local computer versus dynamically online is different.

I did try and Zip files created with this author's class can still be opened on mac with other free unzip programs found off the web.

Also, maybe this another class by Paul Duncan called yes also zipstream may help because zip files created does open in mac with the default unarchive utility. Ironically the issue is reversed in this case, and the zip file cannot be opened on windows. I've tried manipulating the classes to no success.
Link: http://pablotron.org/software/zipstream-php/

Brian

  12. Re: Cannot open zipped files in mac   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2011-07-01 17:34:01 - In reply to message 11 from brian
What I would like to have tested is if a zip created with my class, download on a Windows PC is acting differently than one downloaded on a Mac when opened on a Mac.

I see no reason why that would be the case, then again, the whole problem have me baffled.

I'll have a closer look at Adam' zip file tomorrow.

Another thing. Have any of you tried to use my other Zip class, it should result in binary identical files, but the delivery is different, it might influence the result on the Mac.

The reason I'm asking is that the problem might be the transfer method introducing errors in the download, meaning I've been looking at the wrong place all along if that is the case.

  13. Re: Cannot open zipped files in mac   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2011-07-03 11:45:28 - In reply to message 12 from Asbjorn Grandt
Hi

Will your Mac open this file?

grandt.com/test/Zip/ZipStream.Hello ...

  14. Re: Cannot open zipped files in mac   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2011-07-03 14:18:00 - In reply to message 13 from Asbjorn Grandt
And the "beta" of the new ZipStream class producing the above Hello World is here:
grandt.com/test/Zip/ZipStream.zip

  15. Re: Cannot open zipped files in mac   Reply   Report abuse  
Picture of Adam Docherty Adam Docherty - 2011-07-04 15:10:48 - In reply to message 14 from Asbjorn Grandt
The zip example you provided above does open, unfortunately the new beta class generated zips to not open on mac. Could it be because the zip I am generating contains directories?

  16. Re: Cannot open zipped files in mac   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2011-07-04 15:21:42 - In reply to message 15 from Adam Docherty
I'll test it later tonight.

Can you try making a working zip with directories, like the previous one you provided. Your helloworld.zip did help me a lot in figuring out what is needed.

On a different note, I do think I'm using the Windows directory separator '\', maybe I should change that to the Unix /, not that my Zip claims to BE a Unix generated Zip :)

  17. Re: Cannot open zipped files in mac   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2011-07-04 15:24:39 - In reply to message 16 from Asbjorn Grandt
Correction, I am using a forward slash in the directory paths, so that was not it.

  18. Re: Cannot open zipped files in mac   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2011-07-04 18:42:58 - In reply to message 17 from Asbjorn Grandt
I have looked at the files with dir entries, and there are some bytes missing along the way.

zipinfo gives me
"There are an extra -4 bytes preceding this file."
after each dir entry...

I'm looking into it now.

  19. Re: Cannot open zipped files in mac   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2011-07-04 19:13:05 - In reply to message 18 from Asbjorn Grandt
Apologies for spamming you. Please try the two links I posted previously, I updated the ZipStream a bit, a pair of fields that in the specification were marked as "optional" apparently weren't.
The ZipStream.Hello.zip now contains 3 Hello Worlds. The regular one, and 2 in a sub dir. I also added file and archive comments.

  20. Re: Cannot open zipped files in mac   Reply   Report abuse  
Picture of Adam Docherty Adam Docherty - 2011-07-04 19:14:38 - In reply to message 16 from Asbjorn Grandt
Here you go - working zip with directories:

seerit.com/ziptest.zip

 
  1 - 10   11 - 20   21 - 30   31 - 40