Oracle Error OCI-31198: Mismatch in number of bytes transferred due to non-binary mode

Oracle Error Message

OCI-31198: Mismatch in number of bytes transferred due to non-binary mode

Reason for the Error

An error occurred while reading the specifed file. The most probable cause is that the transfer was initiated in ASCII mode.

Solution

Ensure that the transfer mode is set to BINARY