modifié: superTornado.py

This commit is contained in:
sidya82 2014-02-28 01:46:10 +01:00
parent 9185db9ac2
commit 264beb3c7a

View File

@ -48,6 +48,7 @@ class VideoHandler(BaseHandler):
self.redirect("/")
return
name = tornado.escape.xhtml_escape(self.current_user)
urlretrieve('http://test:a@192.168.1.15/image.jpg?cidx=791836195', 'temp.jpg')
with open("image/temp.jpg", 'rb') as f:
data = f.read()
self.set_header('Content-type', 'image/jpg')