Oracle Error Message
ORA-24854: invalid pieceinfo provided
Reason for the Error
While making the first call to write LOB data, an invalid pieceinfo value provided.
Solution
Correct the call to use OCI_ONE_PIECE or OCI_FIRST_PIECE. If using OCCI, make sure to call writeBuffer before calling writeLastBuffer.