Geert Josten <[email protected]> writes:
> You are applying xs:string on the pdf document. Try skipping that,
> just apply sha1 on the binary doc directly..
FWIW, I’m successfully getting the same MD5 from Java and MarkLogic
for uploaded PDFs using code along these lines:
let $data := xdmp:get-request-body("binary")/node()
let $md5 := xdmp:md5($data, "hex")
(The actual code is a little more complicated, but that’s the heart of it.)
I’m using MD5 rather than SHA1 for compatibility with an external
application, but the same technique should work for the SHA1 hash.
Be seeing you,
norm
--
Norman Walsh
Lead Engineer
MarkLogic Corporation
Phone: +1 512 761 6676
www.marklogic.com
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general