oracle中clob转string。
 Object ob = dataList.get(i)[j];
							String str = null;
							if(ob instanceof SerializableClob){
								SerializableClob sc = (SerializableClob)ob;        
								char[] buffer = null; 
								try {             
									 //根据CLOB长度创建字符数组     
									 buffer = new char[(int)sc.length()];             
									 //获取CLOB的字符流Reader,并将内容读入到字符数组中     
									 sc.getCharacterStream().read(buffer); 
								 } catch (Exception e) {
									 e.printStackTrace(); 
								 }        
								//转换为字符串         
								 str = String.valueOf(buffer);
							}
 
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号