ZipItem.ExtractToStream Method
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9119)
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
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). |