Displaying Blob Images in Python (App Engine)

前端 未结 3 1031
遥遥无期
遥遥无期 2020-12-19 13:35

I am unable to get the image to display on the page. I can store it just fine.

These are the handlers:

class disp_image(webapp.RequestHandler):
    d         


        
3条回答
  •  温柔的废话
    2020-12-19 14:17

    You do not have to serve images yourself. Google can do the job with Google High-Performance Image Serving for free! See: https://developers.google.com/appengine/docs/python/images/functions get_serving_url(blob_key, size=None, crop=False, secure_url=None) Where you only have to get the serving url once and save it for use in your HTML templates in your Images model class.

提交回复
热议问题