[Image-SIG] Deliver me from Kludgehood - PIL, filesystems and
state
Doug.Shawhan@gecits.ge.com
Doug.Shawhan@gecits.ge.com
Fri, 6 Dec 2002 14:22:44 -0500
Wow! Thanks. This helps!
-----Original Message-----
From: Kevin Cazabon [mailto:kevin_cazabon@hotmail.com]
Sent: Friday, December 06, 2002 1:30 PM
To: Shawhan, Doug (CAP, ITS, US)
Cc: image-sig@python.org
Subject: Re: [Image-SIG] Deliver me from Kludgehood - PIL, filesystems
and state
Yes, it's easy to send the image over the Internet without writing it to
disk:
write the image to a StringIO object, then stream that object with a http
header that reads: "Content-Type: image/jpg" with the size/etc. there.
I do it with one of my scripts, here's the script itself attached (it does
some resizing and stuff too, strip out what you don't need)
Kevin Cazabon.