I create programming Delphi 6
I can executer but an error: TLOBLocator: Invalid handle. !!
The files which I cross are of type *.jpg and *.bmp.
My Table :
ImagesB(
id_image number(6),
image BLOB);
Code:
var LOB:TLobLocator;
Begin
With OracleQuery do
Begin
SQL.Clear;
SQL.Add('INSERT INTO imagesB VALUES(44, :image)');
LOB:=TLobLocator.Create(OracleSession1, otBLOB);
DeclareVariable('image', otBLOB);
SetComplexVariable('image', LOB);
Execute;
LOB.LoadFromFile(OpenPictureDialog1.FileName);
LOB.Free;
OracleSession1.Commit;
End;
End;
The files which I cross are of type *.jpg and *.bmp.
My Table :
ImagesB(
id_image number(6),
image BLOB);