通过TClientDataSet  TSocketConnection控件
访问Oracle数据库中含为BLOB字段数据时,有的表会出现错误,有的表不会。
要正常访问Oracle数据库的BLOB字段数据是否需要进行某些设置?
如何进行设置?MT为 BLOB字段类型
执行
 sSql:='select MT from SDDA_MEDIA  where ID='1';
    ClientDataSet.Close;
    ClientDataSet.CommandText:=sSql;
    ClientDataSet.Open;
在弹出的对话框中出现如下错误信息。
‘project sdgis.exe raised exception class EOleException with message 'Data type 
if not supported'. process stopped.use step Run to continue.’PHOTO 为  BLOB字段类型
执行
sSql:='select PHOTO from PDDA_10JD2 where JDBH='1';
    ClientDataSet.Close;
    ClientDataSet.CommandText:=sSql;
    ClientDataSet.Open;
一切正常。
执行以上的操作使用相同的连接,相同的TClientDataSet  TSocketConnection。