You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by Azubuko Obele <bu...@gmail.com> on 2006/04/10 05:05:51 UTC

Writing to a Clob data of unknown length

Hey all.

Anybody have any ideas about how to go about writing Clob data of unknown
length?

My first thought was to insert an empty clob of length 0, then read the
javax.sql.Clob object back and use Clob.setCharacterStream to obtain a
Writer object. Unfortunately the setCharacterStream method isn't supported.
My next idea was to use the Clob.setString method to write the data chunk by
chunk. Turns out this feature isn't supported yet either. So... any ideas?
Nobody else run into this problem yet?