Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
Tulloch
Posted - Sep 08 2014 : 11:52:27 We are pretty new to working with ImageEn and have encountered a couple of problems that we could use some help with. After loading a jpg image into a TImageEnDBView component we are able to store and retrieve the image using a BLOB field in a Firebird database. The problem is that changes made to the image do not get applied when the record is updated. For example, if the image is cropped and then the record is saved to the database, when the image is retrieved again it is still in its original form. We have not been able to determine how to apply changes or update the image in the BLOB field following the initial load from disk.
We have also been unable to get the Save To Disk function to work, also starting with an image in a BLOB field using the TImageEnDBView and SaveImageEnDialog components. The dialog diplays correctly, a filename may be entered, but the file is not written to disk.
Thank in advance for any help with these issues.
Jim
4 L A T E S T R E P L I E S (Newest First)
Tulloch
Posted - Sep 20 2014 : 13:34:26 Hi Nigel, It looks like we were just stepping on our own toes with the code to save the image. Either that or it was a uses issue. Everything is working as expected now. Thanks for the help! Jim
xequte
Posted - Sep 09 2014 : 22:04:50 Hi Jim
Please show us the code you are using to save the image.
Thanks for the quick response. We were posting changes to the record following all changes to the image and other fields in the record. We have switched to explicitly wrapping each change to the image with Edit and Post statements and everything seems to be working as expected.
We do have one other problem. We have been unable to get the Save To Disk function to work, starting with an image in a BLOB field using the TImageEnDBView and SaveImageEnDialog components. The dialog diplays correctly, a filename may be entered, but the file is not written to disk.
Thank in advance for your help.
Jim
xequte
Posted - Sep 08 2014 : 23:31:45 Hi Jim
Prior to chaning the image, put the dataset into edit state. After you have made the change call Post.