Hello,

Hope you all can help me with this problem.  There may be a simple way
of doing this that is escaping me given my limited experience in the
GAE/Python world.

I'd like to respond with an Image stored with a Guest record.  If the
guest has not uploaded an avatar yet, I'd like to respond with a
default image, stored in a static folder.

handle.avatar is a BlobProperty.

if handle.avatar:
    self.response.headers['Content-Type'] = "image/png"
    self.response.out.write(handle.avatar)
else:
    # Here is where I'd like to load the default image and respond
with that instead.

Maybe there's a better way to do this without coding it here.

Thanks in Advance.

Barry

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to