When you open the file in a text editor, do you actually see
8CCA8D318D988DFF8E668ECE8F368F9E9006906...
or do you see garbage?
If the first, then your file is not binary. It is TEXT. You must read it as text, then convert the text to hexadecimal.
When you open the file in a text editor, do you actually see
8CCA8D318D988DFF8E668ECE8F368F9E9006906...
or do you see garbage?
If the first, then your file is not binary. It is TEXT. You must read it as text, then convert the text to hexadecimal.