cant find center directry

Sep 11 2009 4:14 AM

hi iam getting problem in this code iam new developer i tried all possible combinations but this error is not removing can u plz help me
 
 
 
FileStream
fileStream;
ZipFile zipFile;
ZipEntry zipEntry;
ZipOutputStream zipout;
Stream stream;
Bitmap bitmap;
fileStream =
new FileStream("D:\\Sunset1.gzip", FileMode.Open, FileAccess.read);
zipFile =
new ZipFile(fileStream);//cant find center directry
// zipout = new ZipOutputStream(fileStream);
zipEntry = zipFile.GetEntry(
Path.GetFileName("D:\\Sunset2.jpg"));
stream = zipFile.GetInputStream(zipEntry);
bitmap =
new Bitmap(stream);
pictureBox1.Image = bitmap;

Answers (2)