Page 1 of 1
Storing Images in the Database
Posted: Thu 22 Dec 2005 22:22
by Bill Gage
I am using a DevEx Grid to view and edit images I am storing in the database.
For the table I am working with there are two image fields.
Whenever I load an image that is 32 X 32 and post the record the everything works fine. However when I load and image that is 64 X 64 I get the
"The query processor could not produce a query plan..." blah blah blah blah.
Any idea how I can get this to work?
I have also tried loading the image into a TBlobField and posting it but get the same error message.
Bill
Posted: Fri 23 Dec 2005 10:49
by Ikar
> I have also tried loading the image into a TBlobField and posting it but get
> the same error message.
Please try to use Pictures Demo from MyDAC/Demos folder to load this picture.
Storing Images in the Database
Posted: Fri 23 Dec 2005 16:36
by Bill Gage
When I said I tried loading the image into a TBlobField the code I used was exactly the same as the Pictures demo.
I enabled the debugger to see what was being posted and this is what I saw
UPDATE IDM_MGR_FEATURES
SET
IMF_Feat_ID = :1, IMF_Feat_Name = :2, IMF_Image_SM = :3, IMF_Image_LG = :4, IMF_Button = :5
WHERE
IMF_Feat_ID = :Old_1
:1(Integer,IN)=1
:2(String[3],IN)='Log'
:3(Blob,IN)=
:4(Blob,IN)=
:5(Boolean,IN)=False
:Old_1(Integer,IN)=1
Then after closing the debug window I got the same error.
Bill
Posted: Mon 26 Dec 2005 10:50
by Ikar
Can you reproduce this error without using third party components (DevEx Grid)?
Posted: Tue 27 Dec 2005 16:56
by Bill Gage
Completely removed the grid and got the same error.
Storing Images...Resolution
Posted: Tue 27 Dec 2005 17:01
by Bill Gage
For some reason I cannot have a clustered index on the table with multiple images. I took the clustered index off and everything works fine. I am not sure what I am losing by not having the clustered index, but fortunately the table isn't that large to worry about it.
Bill
Posted: Thu 29 Dec 2005 10:22
by Ikar
Please send us (sdac*crlab*com) a complete small test project to reproduce the problem; don't use third party components
Also supply us following information
- Exact version of Delphi or C++ Builder
- Exact version of SDAC. You can see it in About sheet of TMSConnection Editor
- Exact version of Microsoft SQL Server and OLE DB provider that you use.
You can see it in Info sheet of TMSConnection Editor