Serving binary content (images, etc) using BasteHTTPServer

2008-04-16 Thread MarkCSU
I'm writing a simple web server in python using the BaseHTTPServer library. I can serve text content (ie html pages) with ease, but im running into troubles when i try to serve images. The image gets corrupted in transit and when I manually download the image from the website and look at it using

Re: Serving binary content (images, etc) using BasteHTTPServer

2008-04-16 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: I'm writing a simple web server in python using the BaseHTTPServer library. I can serve text content (ie html pages) with ease, but im running into troubles when i try to serve images. The image gets corrupted in transit and when I manually download the image from the

Re: Serving binary content (images, etc) using BasteHTTPServer

2008-04-16 Thread Richard Brodie
[EMAIL PROTECTED] wrote in message news:556871d3-1fea-40f2-9cc6- s.end_headers A bare method name (without parentheses) won't get called. -- http://mail.python.org/mailman/listinfo/python-list