![]() ![]() One of the people using the library is having a problem that seems similar to what you are seeing. ![]() ![]() NET, unrelated to SharpZipLib.Ĭurrently on the user forums for DotNetZip, there's a discussion going on about zip files generated by DotNetZip that cannot be read on OSX. I've spent some time wading through the zip spec, and actually I wrote DotNetZip, which is a zip library for. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |