3

I have used this code given by Marc Gravell in SO to unzip a file

Unzipping a file error

and got this error in this line while ((myEntry = s.GetNextEntry()) != null)

ICSharpCode.SharpZipLib.Zip.ZipException: Wrong Local header signature: 0xAFBC7A37

Any Suggestion??

Community
  • 1
  • 1
bala3569
  • 10,832
  • 28
  • 102
  • 146
  • 1
    It *sounds* like your zip is possibly corrupt... - or maybe your stream just isn't at the right place when starting. A bit hard to tell with this little context, though. – Marc Gravell Dec 02 '10 at 11:02
  • @Marc Gravell:I have tried it with winzip still i got error...... Wrong Local header signature: 0x21726152 – bala3569 Dec 03 '10 at 05:02

1 Answers1

8

Given that hex codes 37 7A equate to the letters '7z', it looks like you've got a file in 7Zip format.

This answer may help you access it from .NET: How do I create 7-Zip archives with .NET?

Community
  • 1
  • 1
Tim Robinson
  • 53,480
  • 10
  • 121
  • 138