Hi,
You can load a binary document and then put metadata in properties.
Here is a sample of how you might do that all in one shot:
xdmp:document-load("c:/tmp/favicon.ico",
<options xmlns="xdmp:document-load">
<uri>/images/favicon.ico</uri>
<format>binary</format>
</options>),
xdmp:document-set-properties("/images/favicon.ico",
<my-property>Put whatever you want here.</my-property>)
Then you can query the properties as follows:
xdmp:document-properties("/images/favicon.ico")
which returns something like this:
<prop:properties xmlns:prop="http://marklogic.com/xdmp/property">
<my-property>Put whatever you want here.</my-property>
<prop:last-modified>2009-01-22T15:31:32-08:00</prop:last-modified>
</prop:properties>
-Danny
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Thursday, January 22, 2009 1:51 PM
To: [email protected]
Subject: [MarkLogic Dev General] Help with images and meta data in
Marklogicserver
Hi,
Can somebody help me with placing an image in marklogic server and
associate some meta data with it. so that later on i can search this
image by using this meta data.
some sample code and a linke to some article would be great.
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general