Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

ZipItem.ExtractToStream Method

Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9147)

ExtractToStream(Stream)

Extracts the current file item to the specified stream.

Declaration
public override ArchiveOperationResult ExtractToStream(Stream outputStream)
Parameters
Type Name Description
Stream outputStream

Stream to write the extracted data to.

Returns
Type Description
ArchiveOperationResult

Operation result.

Overrides
ArchiveItem.ExtractToStream(Stream)
Remarks

Note that data will be written to the current output stream position.

Exceptions
Type Condition
ArgumentNullException

The specified output stream is null.

InvalidOperationException

The output stream is not writable. -or- The item is not a file. -or- The item is already deleted.

ObjectDisposedException

Archive was already disposed.

IOException

An I/O error occurred.

ZipException

Cannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information).

In This Article
  • ExtractToStream(Stream)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies