I have a Java class that writes something to an Oracle BLOB. With a method like this (I fill the blob and return it to the caller):
To call this method, I get a connection to Oracle, call a stored procedure which returns an empty blob (which I then pass to the fillBlob() method):
The stored procedure just returns a temporary blob and contains one line:
This works fine. The problem starts when I put that class in Oracle as a Java source, and call the class from an Oracle procedure (a requirement): I am getting 'ORA-24813 cannot send or receive an unsupported LOB' error.
If my Java class returns something else (or just null), I don't get an error. So, I think the error is because I return the blob I have received as an argument.
What can I do to fix the error, or how else can I achieve my goal?
P.S. I've tried this on two different Oracle databases (10.2.0.1.0 and 10.2.0.3.0)
[ July 30, 2007: Message edited by: Andris Jekabsons ]