title: I can open picture from local, but when I visit from website there is always present contain some errors
body: <p>I can locally visit my picture, but when I want my visit from my django server there is always error.</p>
  
  <p>the source code:</p>
  
  <pre><code>  from django.http.response import HttpResponse
    import mimetypes
  
    fd = open(CONFIG.SERVICES_PATH + sname+'/'+url,'r')
    print CONFIG.SERVICES_PATH + sname+'/'+url
    mime_type_guess = mimetypes.guess_type(url)
    print mime_type_guess
    data = fd.read()
    fd.close()
    response = HttpResponse(data,mimetype = mime_type_guess[0])
  </code></pre>
  
  <p>the print out on console is:</p>
  
  <pre><code>E:/workspace/sydney/main/services/Hunt-Club/shop/1.jpg
  ('image/pjpeg', None)
  </code></pre>
  
  <p>I can visit the picture from local path, but when I run the django server and visit from browser it gives me errors:</p>
  
  <p>http://localhost:8000/gallery/image/Hunt-Club/shop/1/” cannot be displayed because it contains errors."></p>
  
  <p>I do not know want I give correct path and read the data, there is still error for picture require.</p>