On 6/3/06, Javier Rojas <[EMAIL PROTECTED]> wrote:
Hi,

Lets suposse I have a bunch of images in a table in a database. They are
represented as Image objects (PIL library) in python, and represented as
pickle column in the table. What I don't know is how to, once retrieved an
image (at this point I would have a valid Image object), show it in a web
page


You could save it as a file in a temp directory and then server it via the cherrypy.lib.toools.serveFile.  See http://www.cherrypy.org/file/trunk/cherrypy/tutorial/tut09_files.py?rev=956 (there may be a better tutorial link, like not out of SVN, but I couldn't find it with a casual search)

- Bill


--
Bill Woodward     [EMAIL PROTECTED]      http://www.saifa.net

"I have more trouble with D. L. Moody than with any other man I ever met." -- D. L. Moody
        s/D. L. Moody/Bill Woodward/g
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to