Data.DB.TBlobField.LoadFromFile
[–] Properties | |
---|---|
Type: procedure function
| |
Visibility: public | |
Source: Data.DB.pas Data.DB.hpp
| |
Unit: Data.DB | |
Parent: TBlobField |
Delphi
procedure LoadFromFile(const FileName: string);
C++
void __fastcall LoadFromFile(const System::UnicodeString FileName);
Description
Loads BLOB data from a file into the field.
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;