sending image pil 1.1.5 by network
maxime_phan at hotmail.com
maxime_phan at hotmail.com
Mon Nov 20 11:15:47 EST 2006
Hello everyone, I'm trying to make a webcam software with python, pil
library and enet (networking)
Now I have in the client my pil image get from webcam, ready to be send
by network.
I do that:
self.peer.send(0, image.tostring(), enet.FLAG_RELIABLE)
and I have this error:
TypeError: argument 2 must be string without null bytes, not str
does someone know what kind of convertion I should do to make it work?
in tostring() function the default encoder is "raw", perhaps there is
one ok?
Thanks in advance
More information about the Python-list
mailing list