web.py输出图像

作者在 2010-08-12 22:50:10 发布以下内容
class Test:
    def GET(self):
        web.header('Content-Type','image/jpeg')
        image = file('12.jpg', 'rb').read()
        return image
Python | 阅读 2394 次
文章评论,共1条
变幻小子
2011-03-18 15:30
1
看看
游客请输入验证码
浏览2795594次
文章归档