CopyReaderToClientDataSet, Blob and the message “Feature not implemented”
If you have used the method TDBXDataSetReader.CopyReaderToClientDataSet, you probably came across with the message “Feature not implemented”, this exception occurs because the method CopyReaderToClientDataSet can’t copy Blob fields from the DBXReader to the ClientDataSet.
This is no longer a problem, Delphi XE2 Update 2 changed this behavior and now supports Blob text fields when using the CopyReaderToClientDataSet method. The Blog binary support is not implemented yet.
To learn how to use the method CopyReaderToClientDataSet read the article “Copying data from ClientDataSet to DBXReader“
I have been trying to make this work for days and just can’t figure it out.
I am using datasnap client call to a datasnap rest server. It returns my User record from a Sql Server 2008 tblUser table that has first name, last name, etc but has a picture of the person, field name is “Photo” (ie. .bmp, .jpg, .png, etc) all returned in a TDBXReader.
I use TDBXDataSetReader.CopyReaderToClientDataSet that creates my clientdataset and the “Photo” field is created as a blob field. I want to show the contents of the blob Photo field in a TImage. Can you tell me how to do this?
Patrick, DBXReader support only TEXT Blob, Binary BLOB is not supported yet.
I forgot to add this info, I updated the post to reflect that.
Thanks