int length = clob.getLength();
byte[] array = new byte[length];
InputStream in = clob.getAsciiStream();
int offset = 0;
int n;
do
n = in.read(array, offset, length - offset);
while (n != -1);
Try the code snippet above to read the clob into a byte array.
source
share