Delphi Database, Delphi Components from ComponentAce
Products Download Order Contact us
/img/help/home.gif

TECLStream.LoadFromStream

TECLStream


Loads the entire contents of a stream into the compressed data stream.

 

procedure LoadFromStream(Stream: TStream);

 

Description

Use LoadFromStream to fill the data stream 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 resets the size of internal data stream so that the contents of the source stream will fit exactly. It sets the Size property accordingly, and then reads the entire contents of the source stream into the internal data stream. Thus, LoadFromStream will discard any pre-existing data stored in the internal data stream.

 

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 a ECL stream object from other types of stream objects.

        © 2003 - 2024 ComponentAce  | .net zip component | barcode for .net | delphi zip component | delphi database Nov 21, 2024