serving blobs from GAE blobstore in flask

前端 未结 1 1018
闹比i
闹比i 2021-01-16 15:57

I\'m trying to serve big files saved in the blobstore using Flask.

For smaller files I can simply do:

def download_blob(blob_key):
    blob_info = b         


        
相关标签:
1条回答
  • 2021-01-16 16:39

    If you don't care about range-requests, then you can just set a header of 'X-AppEngine-BlobKey' (or blobstore.BLOB_KEY_HEADER to be safe) with the string-version of your blob-key, along with the content type and disposition as you have it.

    0 讨论(0)
提交回复
热议问题