Load a bitmap in blobfield

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
Antoine
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: 08.02.2012, 21:35
Location: Netherlands
Contact:

Load a bitmap in blobfield

Post 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
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post 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..
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
Locked