动态提供来自Google App引擎的图像

| 从Google App Engine提供的图像以斑点形式存储时遇到问题-我正在尝试使用以下代码查看存储的图像 我的数据存储模型是:
class QuestionTemp(db.Model):
     picture = db.BlobProperty()
我从初始表格发来的电话是:
class QuestionAsker3(webapp.RequestHandler):
    def post(self):
      upload_files = self.request.get(\'file\')  # \'file\' is file upload
      tempQuestion = QuestionTemp(picture= db.Blob(upload_files))
      tempQuestion.put()
      self.response.headers[\'Content-Type\'] = \"image/jpeg\"
      self.response.out.write(tempQuestion.picture)
该图像存储在Blobstore中,因为我可以在GAE管理控制台中查看它 \“ blob查看器\”。 在chrome中,返回屏幕为空白-firefox,我得到一个URL,看起来像是哈希码。 提前谢谢了。     
已邀请:
设法解决了问题-正在将数据读取到Blobstore中,而不是作为Blob 因此Blob只是存储参考,因此没有图像数据。 .value的东西对我不起作用。 感谢您帮助我弄清楚@abdul和@adam     

要回复问题请先登录注册