posted 19 years ago
Hello,
I am trying to insert String into CLOB type column like below.
pstmt.setObject(10, msg,java.sql.Types.VARCHAR);
where msg is String.
I am getting SQLException which says inserted value too large.
I tried to insert in different way like below .
byte[] bytes = msg.getBytes();
ByteArrayInputStream byteStream = new ByteArrayInputStream (bytes);
pstmt.setAsciiStream(10, byteStream, bytes.length);
but still getting the same exception.
Can someone please help me.
Thanks,
Trupti