为什么不试试用流的方式呢?比如:
ServletOutputStream sos = response.getOutputStream();
Clob theClob = resultSet.getClob(ClobField);
cis = new BufferedInputStream(theClob.getBinaryStream());
cos = new BufferedOutputStream(sos);
byte[] buffer = new byte[chunkSize];
int bytesRead;
while ((bytesRead = cis.read(buffer, 0, chunkSize)) != -1) {
    cos.write(buffer, 0, bytesRead);
}
cos.flush();
cos.close();
cis.close();

解决方案 »

  1.   

    非常的感谢您的参与
    我试了一下,没有成功。这样能把Clob字段中的内容放到字符串变量中去吗?
      

  2.   

    提示什么错误?是不是没有 import java.sql.*; ?
      

  3.   

    Websphere4.0先天不足,没有办法的。
    好可怜呀
    真是太惨了
      

  4.   

    我告诉你一个办法啦。绝对可以!!!!!!!
    OClass oc = new OClass();
    Clob clb = oc.getClob(2);//getClob()是读取数据库字段后的一个方法,取数据的。
    sRet = clb.getSubString(1L,(int)clb.length());