class disp_image(webapp.RequestHandler):

    def get(self):
        key = self.request.get('key')
image = Images.get(key)
if image:
    self.response.headers['Content-Type'] = 'image/png'
self.response.out.write(images.image)
Displaying Blob Images in Python (App Engine)