ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Problems Using TImageEnDBView
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Tulloch

USA
5 Posts

Posted - Sep 08 2014 :  11:52:27  Show Profile  Reply
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

xequte

39140 Posts

Posted - Sep 08 2014 :  23:31:45  Show Profile  Reply
Hi Jim

Prior to chaning the image, put the dataset into edit state. After you have made the change call Post.

MyDataSet.Edit;
ImageEnDBView1.Proc.Negative;
MyDataSet.Post;

Please also see the DBDemo in the ImageEn demos folder.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

Tulloch

USA
5 Posts

Posted - Sep 09 2014 :  06:50:38  Show Profile  Reply
Hi Nigel,

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
Go to Top of Page

xequte

39140 Posts

Posted - Sep 09 2014 :  22:04:50  Show Profile  Reply
Hi Jim

Please show us the code you are using to save the image.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

Tulloch

USA
5 Posts

Posted - Sep 20 2014 :  13:34:26  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: