{"Cannot find central directory"}

Sep 10 2009 8:53 AM

FileStream fileStream;
ZipFile zipFile;
ZipEntry zipEntry;
Stream stream;
Bitmap bitmap;
fileStream =
new FileStream("D:\\Sunset1.zip", FileMode.Open, FileAccess.Read);
zipFile =
new ZipFile(fileStream);
zipEntry = zipFile.GetEntry(
Path.GetFileName("D:\\Sunset.jpg"));
stream = zipFile.GetInputStream(zipEntry);
bitmap =
new Bitmap(stream);
pictureBox1.Image = bitmap;

Answers (1)