the function I want is to save the picture in Timage object to the sql database, I have tried several ways to do it ,but not successful.
the picture I load from file may be jpg ,bmp or emf,wmf.
I look up some references , most of them told me to do like this below:
table1.insert; // or append;
// or table1.fieldbyname('image').assign(pic);
it works if the picture I load fromis the bitmap file,otherwise If the image is loaded from a jpg file, the exception "bitmap is not valid" comes out;
I have also tried to use TGraphic to load the file, it even failed when I try to load a jpg file in it.
I am so confused now ,pls tell me what to do .My enviroment"
win2k pro, delphi7. sqlserver 2000;