In C # I use DotNetZip
. I have a zip called "innerZip.zip" that contains some data, and another zip called "outerZip.zip" that contains innerZip. why am i doing this? well, when setting a password, the password really applies to individual entries that are added to the archive, and not the entire archive using this internal / external combo. I could set the pass to the entire internal zip code because it is an external record.
The problem is that the code is better than ordinary words:
ZipFile outerZip = ZipFile.Read("outerZip.zip");
outerZip.Password = "VeXe";
Stream innerStream = outerZip["innerZip.zip"].OpenReader();
ZipFile innerZip = ZipFile.Read(innerStream);
innerZip["Songs\\IronMaiden"].Extract(tempLocation);
why am i getting this exception? The internal file is a zip file, so shouldn't I get this exception? is there any way around this, or do i just need to extract the internal from the external and then get it?
Thanx in advance ..
source
share