modifié: superTornado.py
This commit is contained in:
parent
268f218da8
commit
85d85dca5c
@ -252,9 +252,9 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
|
|||||||
f = urlopen(GlobalVars.urlCamera)
|
f = urlopen(GlobalVars.urlCamera)
|
||||||
data = f.read()
|
data = f.read()
|
||||||
temp.write(data)
|
temp.write(data)
|
||||||
encoded = base64.b64encode(data)
|
#encoded = base64.b64encode(data)
|
||||||
f.close()
|
f.close()
|
||||||
self.write_message(encoded)
|
self.write_message(data)
|
||||||
GlobalVars.log.printL( "->Image Data Send : " + self.request.remote_ip, lvl.INFO)
|
GlobalVars.log.printL( "->Image Data Send : " + self.request.remote_ip, lvl.INFO)
|
||||||
except Exception, e :
|
except Exception, e :
|
||||||
GlobalVars.log.printL(e,lvl.FAIL)
|
GlobalVars.log.printL(e,lvl.FAIL)
|
||||||
|
Reference in New Issue
Block a user