On Fri, 2006-12-29 at 09:30 -0600, Chris Mellon wrote:
> On 12/28/06, Ray Schumacher <[EMAIL PROTECTED]> wrote:
> > s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
> > s.bind((HOST, PORT))
> > s.listen(1)
> > conn, addr = s.accept()
> > while 1:
> > data = conn.recv(1024)
> > if dat
On 12/28/06, Ray Schumacher <[EMAIL PROTECTED]> wrote:
> I'm trying to make a small camera server using VideoCapture.py and
> socket. I needed to construct a complete image file with headers etc
> for a browser to recognize it, but I couldn't find a combination of
> StringIO and wx image methods to
Ray Schumacher wrote:
> But, how can I avoid disk writes? wx's *.SaveFile() needs a string
> file name (no objects).
> I'm going to investigate PIL's im.save(), as it appears to allow
> file-objects.
Take a look at the img2*.py files in wx.tools. They're sorta sketchy
imo, but they do the tric
I'm trying to make a small camera server using VideoCapture.py and
socket. I needed to construct a complete image file with headers etc
for a browser to recognize it, but I couldn't find a combination of
StringIO and wx image methods to avoid disk saves, without PIL.
If I save a temp.jpg file t