I download jpeg files which are stored like this in the datastore.
class Photo(db.Model):
data = db.BlobProperty(required=True)
Here is the handler code:
class GetPhoto(webapp.RequestHandler):
def get(self):
photo = db.get(db.Key(self.request.get('photoKey')))
self.response.headers['Content-Type'] = 'image/jpeg'
self.response.out.write(photo.data)
On Aug 26, 1:14 pm, "Lee, Duk (Genworth)" <[email protected]>
wrote:
> Is there a way I can download my files off google app engine? Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---