[Zope] 1 - Images on fly from DB

Dragos Chirila d.chirila at finsiel.ro
Mon Apr 19 06:50:22 EDT 2004


Hi

You can do it like this:

Build a function that returns the blob, let's say showImage, and then in
HTML:

<img src="showImage" border="0" alt="">

If you want you can pass a parameter (e.g. picture id or something like
this):

<img src="showImage?picture_id=..." border="0" alt="">

and in the showImage method get the specified picture.

Hope this will help
Dragos


Hi !

My problem is that:
I have an image "library" in FireBird database (gdb).

I want to show the images in zope site, but I don't know, how to transform
from blob field to real image (in html page).

I want to use this conversion time-to-time, not at once, because it is
database specific "data".

Can anyone help me ?

Thanx for it:
 FT

-- 
Üdv/Kind of Regards:
 fowlertrainer at anonym.hu
 mailto:fowlertrainer at anonym.hu

PS:
 Movies... I have movies that also need to transform... :-)



_______________________________________________
Zope maillist  -  Zope at zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )





More information about the Zope mailing list