Thanks, the open() method seems to work, but how would I use the mimetypes module? I can seem to only be able to set it in the expose decorator, but I'd like to be able to use the same method to serve jpgs, pngs, and even pdfs.
-Min On Aug 14, 10:15 am, "Diez B. Roggisch" <[email protected]> wrote: > Min schrieb: > > > That code seems to be geared for reading an image from the database > > and serving it, but what about opening an image that sits on the hard > > drive? > > And you can use the "mimetypes"-module to guess the mimetype based on > the file-suffix. > > Diez --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---

