1
我跟隨在谷歌應用程序引擎使用圖像的Python API http://code.google.com/appengine/docs/python/images/usingimages.html本教程中,我的問題是,我該如何修改代碼谷歌應用程序引擎,如果沒有找到圖像設定的默認圖像
if greeting.avatar:
self.response.headers['Content-Type'] = "image/png"
self.response.out.write(greeting.avatar)
else:
self.error(404)
,而不是顯示錯誤的,如何顯示默認圖像(靜態JPEG等)?