title: Why Python on Windows can't read an image in binary mode?
body: <p>I want to read a image in binary mode so that I could save it into my database, like this:</p>
  
  <pre><code>img = open("Last_Dawn.jpg")
  t = img.read()
  save_to_db(t)
  </code></pre>
  
  <p>This is working on Mac. But on Windows, what img.read() is incorrect. It's just a little out of the whole set.</p>
  
  <p>So my first question is: why code above doesn't work in Windows?</p>
  
  <p>And second is: is there any other way to do this?</p>
  
  <p>Thanks a lot!</p>