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


TSingleFileSystem.LoadFromStream
TSingleFileSystem
Top 


Loads the entire contents of a stream into the SFS object.

procedure LoadFromStream(Stream: TStream);

Description
Use LoadFromStream to fill the Sinlge File System object with the contents of the stream specified by the Stream parameter. LoadFromStream always sets the Position of the source stream to 0, before streaming in the number of bytes indicated by the source stream's Size property.

LoadFromStream will discard any pre-existing data stored in the SFS object.

If the source stream is a TFileStream object, LoadFromStream does the same thing as LoadFromFile, except that the application must create and free the TFileStream object. LoadFromStream also allows applications to fill the SFS object from other types of stream objects.

Note:   This method may be useful when you need to get a copy of SFS file stored in database BLOB field to in-memory SFS object for example.


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