RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBlobField.LoadFromFile Method

Loads BLOB data from a file into the field.

Pascal
procedure LoadFromFile(const FileName: string);
C++
__fastcall LoadFromFile(const AnsiString FileName);

Use LoadFromFile to load the contents of a file into a BLOB field. Specify the name of the file to load into the field as the value of the FileName parameter.

if not (Query.State in [dsInsert, dsEdit]) then Query1.Insert;
Query1Images.LoadFromFile('c:\Windows\Waves.bmp');
Query1.Post;

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!