5017   Cannot perform a binary read on a file opened as text

Cause

This error occurs if your application code attempts to perform a readBinary operation on a file opened as ANSI text or Unicode text.

Action

Change your application code so that binary reads are not done on text files.