I need to insert a large string as clob into a table. I am using setClob method of PreparedStatement. But the values are not getting inserted into the database table. Can anyone
What database are you inserting the value to? For example for Oracle back-end, preparedStatement methods have 4k limitation on CLOB.
You could use:
Clob clob = ... String chuck = clob.getSubString(1,10); clob.setString(1,chuck);
To verify that the size is not the issue here.