[MarkLogic Dev General] Serving a miscellaneous file
Chris Maloney
voldrani at gmail.com
Fri Apr 9 18:38:24 PDT 2010
I want to be able to, from XQuery, pass control back to the server and tell
it "go serve this file here from the local filesystem".
In other words, say I have a random file within my app's directory tree,
that would normally get served from
http://localhost/examples/HappyCat.png
The MarkLogic server uses the mime-type settings to serve this file, say
C:\Chris\examples\HappyCat.png, with appropriate HTTP headers, etc.
I want to be able, from inside an .xqy module, to relinguish control and
tell the server to go serve C:\Chris\examples\HappyCat.png *as if* that were
the original request. Eliminating the need to set headers and stream the
data from within the xquery module.
I've scoured the docs but can't find a way -- is it possible?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20100409/f09f6b96/attachment.html
More information about the General
mailing list