I deleted the text I wrote earlier that explained all Ive done to achive the task. You only have to know the current design:
I have a window set to collect three informations: Two TextFields (no problem) and a Character Logo (200 pixels tall maxi: resized down it taller).
My problem is with how to save the picture (loaded with Open
or Drop
from the Finder/Explorer) in the window.
At save to disk time, I naturally have to store the image into the Data Base File. I have a RecordSet with all three entries to store, but 'till now, I skipped the image part (no time to do that earlier).
The problem comes here. I tried the provided code example from Picture.GetData
, but since the image was already loaded, the troubles started.
The question is:
I have the image is already stored in a Picture in a Module: from there, how can I work with the RecordSet to fill the image and save that RecordSet.
The design may be wrong: feel free to tell me that and give clues to how I can achieve this task.
Later, the user may want to print data about the character and I will use these values to do that (the image at top/left, some data will be printed at the image right, then below the image (TextField #2) and use TextField #1 for the file name. But this is a different story. I may have to end the save data in the sqlite file first.