cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eelke Toonstra" <emtoo...@cs.uu.nl>
Subject Problem with showing pictures from eXist database
Date Fri, 13 Aug 2004 12:24:25 GMT
I have a problem with showing images from the eXist database in Cocoon.
When I want to show an image in my browser, for example
http://localhost:8080/exist/xmldb/db/images/test.jpg it doesn't show a
picture but the small icon indicating there's no picture.XML files from
the database work without any problems.

The sitemap.xmap contains:

<map:match pattern="xmldb/db/images/**.jpg">
	<map:read src="xmldb:exist:///db/images/{1}.jpg" mime-type="text/jpg"/>
</map:match>

<map:match pattern="**.jpg">
	<map:read mime-type="image/pjpeg" src="{1}.jpg"/>
</map:match>

I tried it for gif images as well, but the same problem occurs.

When I don't use the database it works fine e.g.:

<map:match pattern="xmldb/db/images/**.jpg">
	<map:read src="images/test.jpg" mime-type="image/jpg"/>
</map:match>

What could be the problem?

More in general, is it a good idea to keep the pictures with the XML files
in the same database?

Thanks in advance

eXist 1.0
Cocoon 2.0
Java 1.4
Jetty 4.1
Windows XP

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message