[pylons-discuss] passing an image to a template in pylons dynamically

2014-09-07 Thread 'gazza' via pylons-discuss
Hello, I would like to pass an image to a template dynamically to avoid any file writes. I convert the image to a StringIO and get the value. I wanted to pass that into a context object and simply display it like below: image src='$c.imageobject'/ Having a royal time on doing this and

Re: [pylons-discuss] passing an image to a template in pylons dynamically

2014-09-07 Thread Laurent DAVERIO
Le 07/09/2014 17:42, 'gazza' via pylons-discuss a écrit : Hello, I would like to pass an image to a template dynamically to avoid any file writes. I convert the image to a StringIO and get the value. I wanted to pass that into a context object and simply display it like below: image

Re: [pylons-discuss] passing an image to a template in pylons dynamically

2014-09-07 Thread 'gazza' via pylons-discuss
Yes thats the way I went with this make it inline and base64 encoded. All good. Really appreciate the direction on this. Thanks, Gazza On Sunday, September 7, 2014 8:57:02 AM UTC-7, Eldav wrote: Le 07/09/2014 17:42, 'gazza' via pylons-discuss a écrit : Hello, I would like to pass