Page 1 of 1

Load a bitmap in blobfield

Posted: 11.04.2012, 16:33
by Antoine
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...

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;
I'am sorry for my sad English :oops:

grtz Antoine

Posted: 11.04.2012, 20:44
by EgonHugeist
Antoine,

it would be interesting which revision do you use.
What are the errors? What happens exacly?

Best regards,

EgonHugeist

btw. didn't forgot your "one char filter" thread. Was out of time..