利用IOUtils读取java.sql.Clob类型

Clob clob = (Clob)map.get("body");

message.setBody(IOUtils.toString(clob.getCharacterStream()));

IOUtils是jarkatar commons里的工具类

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.