title: Why does images.get_serving_url gives a 404 on dev server?
body: <p>I'm basicly uploading an image via XHR request and it's working on production but not in dev. </p>
  
  <p>The link given by images.get_serving_url() returns a 404.</p>
  
  <p>Link exemple : <code>http://localhost:8080/_ah/img/LCDrjov_QuwEE7peQTeAbg==</code></p>
  
  <pre><code>class UploadHandler(blobstore_handlers.BlobstoreUploadHandler):
  def post(self):
      upload_files = self.get_uploads('file')  # 'file' is file upload field in the form
      blob_info = upload_files[0]
  
      blob_key = blob_info.key()
  
      tmp_file = ProjectImage()
      tmp_file.image_blobkey = blob_key
      tmp_file.image_serve_url = images.get_serving_url(blob_key)
      tmp_file.project_id = int(self.request.get('project_id'))
      tmp_file.put()
  
      self.response.out.write("success")
  </code></pre>
  
  <p><strong>Edit :</strong> I'm using Google App Engine Launcher bundeled with Python App Engine 1.8.9</p>
  
  <hr>
  
  <p><strong>SOLUTION :</strong></p>
  
  <p>The problem was that PIL was not found. I installed the 32bit version form the link provided in the App Engine doc. I needed the 64bit version which is not easy to find since it's all being replaced with pillow. </p>
  
  <p>Here's a link to it : <a href="http://christianakesson.com/2013/4615" rel="nofollow">http://christianakesson.com/2013/4615</a></p>
  
  <p>(Scroll down to the end of the post to get the binaries)</p>