dmcgeoch Messages: 52 Registered: November 2006 Location: New Jersey
Member
Hello,
I noticed that there are several data types not included in the definitions for MySql. In particular, the BLOB data type. Is there a reason for this, or just an oversight? I want to save an image as part of a record and I believe that a BLOB is the proper data structure for this. Please let me know if there is a better way to handle images.
dmcgeoch Messages: 52 Registered: November 2006 Location: New Jersey
Member
Storing it as text was my next attempt
I am having trouble determing the size of the image for the .sch file. I wrote code to open an image and place it in a label, but I can't figure out how to determmine the size and convert the image to a string that can be saved and restored. I've been looking through the examples and reference code without any luck. I've also be searching the forums, but I haven't come across anyone else attempting to save an image as part of another file.
Did the trick after I used the Encode64() function prior to storing the image and the Decode64() function after fetching the image.
I used the GetLength() function to determine an approximate size for the image in the record. The GetImageStringSize() and the GetImageStringDots() functions appear to give an area value, but not the amount of memory required to store the image.
Thank you for all of your assistance and keep up the great work. Ultimate++ is by far the best environment I've used.