ExtractWithPassword Method (stream, password)

DotNetZip

Ionic Zip Library v1.9.1.6 ExtractWithPassword Method (stream, password)
ReferenceIonic.ZipZipEntryExtractWithPassword(Stream, String)
Extracts the entry to the specified stream, using the specified Password. For example, the caller could extract to Console.Out, or to a MemoryStream.
Declaration Syntax
C# Visual Basic Visual C++
public void ExtractWithPassword(
	Stream stream,
	string password
)
Public Sub ExtractWithPassword ( _
	stream As Stream, _
	password As String _
)
public:
void ExtractWithPassword(
	Stream^ stream, 
	String^ password
)
Parameters
stream (Stream)
the stream to which the entry should be extracted.
password (String)
The password to use for decrypting the entry.
Remarks

The caller can specify any write-able stream, for example a FileStream, a MemoryStream, or ASP.NET's Response.OutputStream. The content will be decrypted and decompressed as necessary. If the entry is encrypted and no password is provided, this method will throw.

The position on the stream is not reset by this method before it extracts. You may want to call stream.Seek() before calling ZipEntry.Extract().

Assembly: Ionic.Zip (Module: Ionic.Zip) Version: 1.9.1.8 (1.9.1.8)