Ahh, OK.
The basic idea would be something like this
@turbogears.expose()
def myimg_jpg(self):
# get your image
# set cherrypy.response.headerMap["Content-Type"]
# set cherrypy.response.body
Then, in the page that needs to include the image, you would just say
<img src="myimg.jpg"/>
(Note that the "." gets converted to an _ for python.)
For more specific details, you should take a look at what the cherrypy
serveFile function does:
http://www.turbogears.org/docs/api/source/cherrypy.lib.cptools-module.html#213
Kevin
On 10/5/05, Leonardo <[EMAIL PROTECTED]> wrote:
>
> Hi Kevin =D
> thank for help-me..
>
> but i access image in DataBase or buffer and i not have image saved in
> disk ?
> how to make it?
>
> thaks for help =D
>
> [],s Léo
>
>
--
Kevin Dangoor
Author of the Zesty News RSS newsreader
email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com