On Dec 6, 10:10 am, Voltron <
nhy...@googlemail.com> wrote:
> I have an object called "user" which I am passing to my Jinja2
> template. This object contains the user_name avatar image and other
> properities
>
> user['user_name']
> user[avatar_image']
> ...
>
> All other values work except the image file, I suspect its because I
> might have to send the header for the image file as in:
>
> cherrypy.response.headers['Content-Type'] = "image/png"
>
> My question is, how can I achieve this?
I think you can't. You should pass the URL of the image in your object