title: Storing Images on App Engine using Django
body: <p>I'm trying to upload and save a resized image in a db.BlobProperty field on Google App Engine using Django.</p>
  
  <p>the relevant part of my view that process the request looks like this:</p>
  
  <pre><code>image = images.resize(request.POST.get('image'), 100, 100)
  recipe.large_image = db.Blob(image)
  recipe.put()
  </code></pre>
  
  <p>Which seems like it would be the logical django equivalent of the example in the docs:</p>
  
  <pre><code>from google.appengine.api import images
  
  class Guestbook(webapp.RequestHandler):
    def post(self):
      greeting = Greeting()
      if users.get_current_user():
        greeting.author = users.get_current_user()
      greeting.content = self.request.get("content")
      avatar = images.resize(self.request.get("img"), 32, 32)
      greeting.avatar = db.Blob(avatar)
      greeting.put()
      self.redirect('/')
  </code></pre>
  
  <p>(source: <a href="http://code.google.com/appengine/docs/python/images/usingimages.html#Transform" rel="noreferrer">http://code.google.com/appengine/docs/python/images/usingimages.html#Transform</a>)</p>
  
  <p>But, I keep getting an error that says: NotImageError / Empty image data.</p>
  
  <p>and refers to this line:</p>
  
  <pre><code>image = images.resize(request.POST.get('image'), 100, 100)
  </code></pre>
  
  <p>I'm having trouble getting to the image data. Seems like it's not being uploaded but I can't figure out why. My form has the enctype="multipart/form-data" and all that. I think something's wrong with how I'm referring to the image data. "request.POST.get('image')" but I can't figure out how else to reference it. Any ideas?</p>
  
  <p>Thanks in advance.</p>