Never Handle non-Text Binary Data as a String
The bytes of a binary file, such as a JPG, PDF, etc. should never be treated as a string. Loading a binary file into a string, and then saving back to a binary file will surely result in a different file that is corrupted. This rule should be followed for all programming languages. Don’t treat binary non-text bytes as […]