[Zope] how to access files outside the database

Rob Page rob.page@digicool.com
Thu, 30 Sep 1999 10:19:07 -0400


Hi Philipp:

> How can I access files that do not lie inside the Zope database. I
need that 
> feature because I have to write an image database where the images are
stored 
> in a common directory and only the filenames are stored in the RDBMS.
If I 
> address an image wit the <IMG...> tag zope searches in its internal
object 
> hierarchy.
>
>Is there any possibility?

I think so.  We've had similar situations very recently.

How about:

<dtml-in sqlGetImageName>

<img src="http://www.server.com/images/<dtml-var image_name>">

</dtml-in>

where sqlGetImageName returns (possibly among other things) image_name

--Rob

P.S. - If it's all the same, please avoid sending HTML email to the
list.  It makes replying in a sane way difficult.