| To: | Creighton Kirkendall <ckirkendall@xxxxxxxxxxxxxx>, Abdul Habra <ahabra@xxxxxxxxx> |
|---|---|
| Subject: | Re: [cinjug-users] Returning 4K+ from a Java Stored Procedure |
| From: | santosh kaushik <santoshkaushik@xxxxxxxxx> |
| Date: | Fri, 23 Sep 2005 12:08:18 -0700 (PDT) |
| Cc: | users@xxxxxxxxxx |
| Delivered-to: | mailing list users@cinjug.org |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=MPX9y+fzXM+WOFNs8ty+oNX5ujrf7i0iBKoWZtFzCveLr5WWjVRLbYiYqBVJyAOe9i31kBrxVl3cohb0ksFVPLNOuclkEBk8AeO4cfPfJZ+U//yku+11b0OwDO2UepNcrQeEgLHe6KC8DB5z3t1S9BNQlNFUaLcJlmmYONn/kqc= ; |
| In-reply-to: | <1127500829.2681.136.camel@localhost.localdomain> |
| Mailing-list: | contact users-help@cinjug.org; run by ezmlm |
|
You have to insert a CLOB in three steps :
First you have to insert a empty clob and then write your actual data.
1) Insert a empty clob using CLOB.empty_lob() method.
2) Then do a select on this column and get the CLOB field, then get a character output stream using getCharacterOutputStream. This returns you a java.io.Writer.
3) Now write your char[] or string to the writer.
Note: A) You have to set the con.setAutoCommit(false) before the transaction starts
B) After writing to the Writer do a commit on the connection.
This should surely work.
Creighton Kirkendall <ckirkendall@xxxxxxxxxxxxxx> wrote:
Yes, I tried that but I still get the same error. I not sure where to go from here.
Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [cinjug-users] Returning 4K+ from a Java Stored Procedure, Eric Bardes |
|---|---|
| Next by Date: | RE: [cinjug-users] Returning 4K+ from a Java Stored Procedure, Prakash, Anu |
| Previous by Thread: | Re: [cinjug-users] Returning 4K+ from a Java Stored Procedure, Eric Bardes |
| Next by Thread: | Hibernate 3 on jdk 1.3, Bill Manuel |
| Indexes: | [Date] [Thread] [Top] [All Lists] |