I’ve been working on a simple App Engine application that offers upload and
download functionality to and from Google Cloud Storage. When it came time to
actually download the content I needed to write a webapp2
will retrieve the file from Cloud Storage and return it to the client.
The trick to this is to set the proper content type in your response header. In the example below I used the Cloud Storage Client Library to open and read the file, then set the response appropriately.