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 |
---|---|
Archive |
Operation result. |
Overrides
Remarks
Note that data will be written to the current output stream position.
Exceptions
Type | Condition |
---|---|
Argument |
The specified output stream is null. |
Invalid |
The output stream is not writable. -or- The item is not a file. -or- The item is already deleted. |
Object |
Archive was already disposed. |
IOException | An I/O error occurred. |
Zip |
Cannot perform the requested operation, or the operation was canceled
(see Problem |