
I don't know for sure, because I am not very familiar with either SharpZipLib or OSX, but I still might have some useful insight for you. I wonder if it is needed to use zipStream.Write() in order to write directly to the stream? I found the above code on the Internet, so I am not absolutely sure if the whole thing is correct. zip file created manually with the same files on Windows is extracted without any problems on Windows and Mac OS X. But as soon as I try to unzip my archive on Mac OS X, it only creates a.

ZipStream.Write(buffer, 0, buffer.Length) Īll works well under Windows, when I open the file e. ZipEntry entry = new ZipEntry(Path.GetFileName(pathname)) Using (var zipStream = new ZipOutputStream(outStream))īyte buffer = File.ReadAllBytes(pathname) Using (var outStream = new FileStream("Out2.zip", FileMode.Create))

I have an application which creates a zip file containing some JPEGs from a certain directory.

Argh, today is the day of stupid problems and me being an idiot.
