Hello all,
I am trying to load tiff image files from the file system like I use to
load .jpg files, but I get an exception when I try to do so; I've tried
to change the response-type to "image/tiff" or "binary" or even removing
that line but that did not help. I'd appreciate if somebody could help
me or explain why I am getting an exception.
Thanks,
Rouzbeh
xdmp:set-response-content-type("image/jpeg"),
let $image_path := xdmp:get-request-field("path")
return
if($image_path) then
(
(:
here I find the actual filename on the file system; -- verified
:)
try
{
let $img := xdmp:document-get($filename)
return
if(fn:exists($img)) then ($img) else fn:string("image not does
not exsist")
}
catch($e)
{
fn:string(" exception in loading the file")
}
)
else ()
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general