class ImageController(BaseController):
    def view(self):
        image_content = <binary data of your (generated) image />
        app = DataApp(image_content, content_type='image/jpeg')
        app.content_disposition(filename='%s.jpg' % image_name)
        return app(request.environ, self.start_response)

Jerry

On Jun 3, 5:05 pm, deezee <[EMAIL PROTECTED]> wrote:
> Hello everybody!
> I'm pretty new in Pylons world - today i downloaded and installed
> software. So, some stupid question:
>
> How to send (simplest way) image from PIL to template  (browser)
> without saving file?
> I'm playing around helloworld sample, but i want to see picture
> instead of text. I can generate one by PIL, and send by c.image, but
> till now i just have <PIL.Image......> marker, no image itself.
> In PHP it's quite simple, don't believe something newer is more
> complicated..
>
> Ł
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to