Oracle Error ORA-24820: Differnt LOB function called while another OCI LOB call is in progress

Oracle Error Message

ORA-24820: Differnt LOB function called while another OCI LOB call is in progress

Reason for the Error

An attempt was made to execute a new OCI LOB call while another OCI LOB call was in progress.

Solution

Wait for the ongoing LOB streaming call to finish before issuing the next server call, or use OCIBreak() to abort the current LOB streaming call.