Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Picture in Access Database in Delphi

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have used ODBC to link my datbases in delphi. I can get the field wich has a picture...it's a Tblob. But when I want to insert it in a database then it says Tpicture <> TBlob Ho to solve that?

//FormBeheer.DBImage1.Picture:= FormSt.Image1.picture;
//FormBeheer.Table1Pasfoto. := FormBeheer.DBImage1;
//FormBeheer.Table1.InsertRecord([Editnaam.text,'s','s','s','s','s','s',FormSt.Image1.picture]);
//FormBeheer.Table1Pasfoto := FormSt.Image1.picture;
 
I'm just guessing as I've never used an Access database inside Delphi, but you should be able to do something like:

Table.FieldName.Assign(Image.Picture);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top