Re: Paster web server crashing on image response

2007-10-19 Thread Razor19110
threadlocking PIL as I do here; http://wiki.pylonshq.com/display/pylonscommunity/Adding+graphical+output James On Oct 18, 2:26 am, Razor19110 [EMAIL PROTECTED] wrote: The test.jpg file is just a tiny test jpeg. When I run paster serve -- reload development.ini and go to the page that would

Paster web server crashing on image response

2007-10-18 Thread Razor19110
I'm trying to send an image to the client, so i have this function in my controller: def Photo_Test(self): from PIL import Image from StringIO import StringIO f=open(test.jpg,rb) data=f.read(100) response.headers[content-type]=image/jpeg