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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Problems Using TImageEnDBView

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Tulloch Posted - Sep 09 2014 : 06:50:38
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
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.

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