akhilgaur1988 wrote:
Is there any chunk of code that could be helpful in reading the .zip files byte by byte or by using stream reader?
I just used ICSharpCode.SharpZipLib last week to peek inside flash swf files, because most of the time, the files are compressed.
I can't remember where I got it from, but it was a free download. It seems to handle almost everything, zip, rar, tar, and the source is available as well.
I used it like this below
Dim inputStream As Stream = Nothing
If (System.Text.Encoding.ASCII.GetString(signature, 0, 3) = "CWS") Then
inputStream = New InflaterInputStream(stream)
Else
inputStream = stream
End If