I’m use method:
Code: Select all
myIBCQuery.Append;
BlobField(myIBCQuery.FieldByName('FILE')).LoadFromFile(fileIn.FileName); // FILE = Type Blob in Firebird DataBase
myIBCQuery .FieldByName('EXT_DOCTO').AsString := UpperCase(ExtractFileExt(fileIn.FileName); // Extension in my delphi app
myIBCQuery .Post;
Do not know if I'm using the best method with the correct properties of the query.
I can guide or help with an example.
Delphi XE, Firebird 2.5, IBDAC 3.60.0.23 pro, Windows 7