Search code examples
pythongoogle-app-enginewebapp2

Return large/streaming responses via webapp2 on GAE?


I'm building a web app for GAE where logged-in users may download potentially large files. How do I construct such responses (or comet responses)? I believe the webapp2 Response object fully buffers and has no flush().


Solution

  • store the file in a blob and let the user download the blob. https://developers.google.com/appengine/docs/python/blobstore/overview