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 |