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
Storing Images in the Database
Storing Images in the Database
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
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
Storing Images...Resolution
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
Bill
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
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