Created
June 14, 2012 12:46
-
-
Save tomgullo/2930053 to your computer and use it in GitHub Desktop.
get a clob from Oracle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sb = new StringBuffer() | |
def c = e.THE_CLOB | |
if ( (int) c.length() ) { | |
def buffer = new char[length] | |
def r = c.getCharacterStream() | |
def count = 0 | |
while ( (count = r.read(buffer) ) != -1 ) { sb.append(buffer) } | |
} | |
println sb.toString() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment