Are you trying to read a binary file in text mode (File.read
without mode specified) ?
If you are not using a system other than Windows, then you need to pay attention to the "rb"
parameter, because Windows corrupts binary data when it reads them in text mode.