Load a bitmap in blobfield
Posted: 11.04.2012, 16:33
Hi all,
I will load an picture in a blobfield from my ZTable. We are using SQLite3...
This is my code, but it don't work! I've a lot of errors...
I'am sorry for my sad English
grtz Antoine
I will load an picture in a blobfield from my ZTable. We are using SQLite3...
This is my code, but it don't work! I've a lot of errors...
Code: Select all
procedure TMainForm.Button1Click(Sender: TObject);
begin
if OpenPictureDialog.Execute then
BLOBDS.Edit;
TBlobField(BLOBDS.DataSet.FieldByName('Plaatje')).LoadFromFile(OpenPictureDialog.FileName);
BLOBDS.DataSet.Post;
end;
grtz Antoine