Data.DB.TParam.LoadFromFile

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TParam

Delphi

procedure LoadFromFile(const FileName: string; BlobType: TBlobType);

C++

void __fastcall LoadFromFile(const System::UnicodeString FileName, TBlobType BlobType);

Description

Loads the value of a BLOB parameter from the specified file.

Use LoadFromFile to set the value of a BLOB parameter from a value stored in the file specified by the FileName parameter. The DataType property is set to the value passed as the BlobType parameter.



Query2.ParamByName('Notes').LoadFromFile('c:\Files\Note1234.txt', ftMemo);



See Also