后台正常,前台500 (Failed to load resource: the server responded with a status of 500 (Internal Server Err)
经过debug后发现,回传的数据中有一个ClOB字段的对象
后台正常,前台500 (Failed to load resource: the server responded with a status of 500 (Internal Server Err)
造成原因:ClOB对象前台无法解析
解决办法:通过dbms_lob.substr()转换clob字段为varchar2类型

dbms_lob.substr(CONTENT,4000,1) CONTENT

后台正常,前台500 (Failed to load resource: the server responded with a status of 500 (Internal Server Err)

CLOB里存的是2进制 判定长度 DBMS_LOB.GETLENGTH(col1) 获取文本
DBMS_LOB.SUBSTR(col1,n,pos)
DBMS_LOB.SUBSTR(col1,10,1)表示从第1个字节开始取出10个字节
DBMS_LOB.SUBSTR(CLOB_VAR,32767)表示截取CLOB变量保存的全部数据
DBMS_LOB.FILECLOSE(IMG_BFILE)关闭文件

https://blog.csdn.net/zftang/article/details/6287307

相关文章: