hi,

i am currently using delphi 2007, i am wanting to be able to add a image(prefrebly jpeg) into a access database. i have tried doing this but i cannot as when it adds i get several errors, or it does not insert correctly, has anyone made any code or anything similar to this to help me out?

thanks in advance.

edit ^^^
i forgot to post my method so far

begin
opendialog1.Execute;
with adotable1 do
begin
Edit;
(fieldbyName('Picture') as Tblobfield).loadfromFile(opendialog1.filename);
Post;
end;

this is the code i am using where i am wanting to search my files for an image and then i want it to be inserted into the database, however i get the error message saying my bitmap is not valid....

what do i do to solve this issue?