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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

save *.bmp on database

Status
Not open for further replies.

dmarnerou

Programmer
Jun 12, 2002
30
CY
Hello,
Does anyone know how I can save a *.bmp file I selected from a FileListBox and save it on a database?
Please respond asap.

Thanks,
Demetra
 
Assuming that you have a table with a BLoB field:
Code:
Table.Open;
Table.Edit;
TBlobField(Table.FieldByName('MY_BITMAP')).LoadFromFile(AFileName);
Table.Post;

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top