Oracle Error ORA-24802: user defined lob read callback error

Oracle Error Message

ORA-24802: user defined lob read callback error

Reason for the Error

The only valid return value for a user defined lob read callback function is OCI_CONTINUE. Any other value will cause this error.

Solution

Verify that OCI_CONTINUE is returned from the user defined lob read callback function.