Opens the entry for extraction and provides a stream with entry content.
public Stream Open()
The stream that represents the contents of the entry.
Read from the stream to get original content of file. See examples section.
Stream decompressed = entry.Open();
.NET 4.0 and higher - use Stream.CopyTo method:
.NET 3.5 and before - copy bytes manually:
byte buffer = new byte; int bytesRead; while (0 < (bytesRead = decompressed.Read(buffer, 0, buffer.Length))) fileStream.Write(buffer, 0, bytesRead);