TECLFileStream.SaveToStream
TECLFileStream
Writes the entire contents of the stream to the stream object specified by Stream.
procedure SaveToStream(Stream: TStream);
Description
Use SaveToStream to copy decompressed data that is stored in the data stream into another storage medium. SaveToStream writes the entire contents of the data stream into the indicated stream object, starting at the current position in the stream that was passed as a parameter.
When the Stream parameter is a TFileStream object, SaveToStream does much the same thing as the SaveToFile method.
If the entire contents of the data stream cannot be written to the target stream, SaveToStream raises an exception.
Note:
We recommend that you use the SaveToStream instead of the CopyFrom method as it works much faster.
|