title: Why can I not read more than 16 bytes of a JPEG file in Python?
body: <p>I am trying to read a JPG image in Python.</p>
  
  <p>So far i have:</p>
  
  <pre><code>f = open("test.jpg")
  ima = f.read(16)
  
  print "'%s'"% (ima)
  </code></pre>
  
  <p>It reads 16 bytes and displays the string in console, but it looks like I cannot display more than 32 bytes. Why?</p>
  
  <p>When it tries to read 32 or more bytes, the output will be the same as when it read 16 bytes. Why can I not read more than 16 bytes of the jpeg image?</p>