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

TECLStream.LoadFromFile

TECLStream


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

 

procedure LoadFromFile(const FileName: string);

 

Description

Use LoadFromFile to fill the data stream with the contents of a file and transparently compress the data. Pass the name of the file as the FileName parameter. LoadFromFile allows an application to read the contents of a file into the ECL stream without having to explicitly create and free a file stream object.

 

LoadFromFile resets the size of data stream so that the contents of the file will fit exactly. It sets the Size property accordingly, and then reads the entire contents of the file into the data stream. Thus, LoadFromFile will discard any pre-existing data stored in the data stream.

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