How to display an image stream from PIL?

I was working on a program to drive a Cosmo (

) in VR (using p3dvr). I need to know how I can read from the image stream that it sends (in PIL) so that I can see what it sees. Can anyone help? Thanks in advance.

You can use setRamImage in the Texture class to pass it data from an arbitrary buffer-compatible object (similarly, getRamImage is used for the other way around). This question has been answered many times before in these forums, have you tried the search feature?