Hi,
note that there are two different types of Blobs:
java.sql.Blob: the Java standard Type
oracle.sql.BLOB: the oracle driver's type
It seems to me that you cast from one to the other
(In your code, you write sometimes BLOB, sometimes Blob)
Anyway, I have not yet managed to read a blob from an Oracle database using Oracle's DB driver - it is simply too buggy.
The only driver that worked so far was the Oracle driver by DataDirect
(
http://www.datadirect.com)
However, this one is not really cheap...
regards,
Stefan