Oracle Error ORA-08440: raw buffer is too short to hold converted data

Oracle Error Message

ORA-08440: raw buffer is too short to hold converted data

Reason for the Error

The output raw buffer passed to a UTL_PG NUMBER_TO_RAW conversion routine was not large enough to contain the results of the conversion based on the picture mask.

Solution

Increase the raw buffer size to the size necessary to hold the entire result of the conversion.