[Image-SIG] StringIO seems to garble images in cgi

Fredrik Lundh fredrik@pythonware.com
Sun, 8 Dec 2002 14:08:01 +0100


Georg Mischler wrote:

> > > [...]
> > >
> > > try:
> > >     print 'Content-Type: image/jpeg\n'
> 
> 
> Another possibility is that the missing second '\n' here
> causes the server to send garbage. You need an empty line
> between the HTTP headers and the data.

but the print statement adds an extra newline by
itself, right?

</F>