Oracle Error OCI-22282: non-contiguous append to a buffering enabled LOB not allowed

Oracle Error Message

OCI-22282: non-contiguous append to a buffering enabled LOB not allowed

Reason for the Error

The buffered write operation has an input offset value more than one byte or character past the end of the LOB.

Solution

Specify an input offset value which is exactly one character or byte greater than the length of the LOB that you are attempting to update through a buffered write operation.