Topic: DBImage and script
Hello Dmitry and all MVD fans,
Simple question I'm sure for you :
When I put a DBImage1 on Form1, and run the program, when I load the image, it is saved in Database without problems (Type StoreFile, not LinkFile).
But when I do something like :
HTTPGetFile(MAINIMG, SKU+'-001-main-image.jpg');
asset_add_web_result.DBImage1.Picture.LoadFromFile(SKU+'-001-main-image.jpg');
on running the program the image is correctly displayed in DBImage1, but when I click save, it's not saved into database.
The DBImage1 is linked normally with a table and a field, the SAVE button take into account the DMImage1 field and the correct table like normal, the only difference is that I don't load manually the image into the DBImage1, but I load it with a script.
I think it as to do with the _filename that is added automaticly by MVD to the database when you decide to store the file in database, but that's just a guess.
Any idea ?
Wish you all a good day
Cheers
Mathias
Each time I get a divorce, I keep the house
Zaza Gabor