Oracle Message ORA-24854 - invalid pieceinfo provided

ERRORinvalid pieceinfo provided
CAUSEWhile making the first call to write LOB data, an invalid pieceinfo value provided.
ACTIONCorrect the call to use OCI_ONE_PIECE or OCI_FIRST_PIECE. If using OCCI, make sure to call writeBuffer before calling writeLastBuffer.