Single File System: Virtual File System Delphi Library
for Archive / Backup with Transparent Compression and Strong Encryption


TSFSFileStream.SaveToStream
TSFSFileStream
Top 


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.


© 2000-2004 AidAim Software LLC Single File System: Single File Syste