Crisis.Ionic.Zip.ZipEntry.ExtractWithPassword C# (CSharp) Method

ExtractWithPassword() public method

Extracts the entry to the specified stream, using the specified Password. For example, the caller could extract to Console.Out, or to a MemoryStream.

The caller can specify any write-able stream, for example a , a , 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().

public ExtractWithPassword ( Stream stream, string password ) : void
stream Stream /// the stream to which the entry should be extracted. ///
password string /// The password to use for decrypting the entry. ///
return void
        public void ExtractWithPassword(Stream stream, string password)
        {
            InternalExtract(null, stream, password);
        }

Same methods

ZipEntry::ExtractWithPassword ( ExtractExistingFileAction extractExistingFile, string password ) : void
ZipEntry::ExtractWithPassword ( string password ) : void
ZipEntry::ExtractWithPassword ( string baseDirectory, ExtractExistingFileAction extractExistingFile, string password ) : void
ZipEntry::ExtractWithPassword ( string baseDirectory, string password ) : void
ZipEntry