Thanks all for such a quick response.
From: general-boun...@developer.marklogic.com
on behalf of David Lee
Sent: Wednesday, November 30, 2016 7:30:39 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Hash of pdf
PDF's are b
Geert Josten 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"
EBE9E10A312030206F626A0A3C3C2F43726561746F7220284D6F7A696C6C612F352E30205C2857
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Kapoor, Pragya
Sent: Wednesday, November 30, 2016 12:37 AM
To: MarkLogic Developer Discussion
Su
o: MarkLogic Developer Discussion
mailto:general@developer.marklogic.com>>
Date: Wednesday, November 30, 2016 at 6:37 AM
To: MarkLogic Developer Discussion
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Hash of pdf
Thanks Greet.
However, the requirement is as
nerate the same hash, which java code is generating in MarkLogic.
Please suggest.
Thanks
Pragya
From: general-boun...@developer.marklogic.com
on behalf of Geert Josten
Sent: Tuesday, November 15, 2016 3:55:12 PM
To: MarkLogic Developer Discussion
Subject: Re:
r.marklogic.com>>
Date: Tuesday, November 15, 2016 at 10:15 AM
To: MarkLogic Developer Discussion
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Hash of pdf
Thanks Greet
But how would the text of pdf could be converted to string, so that it
uesday, November 15, 2016 2:10:33 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Hash of pdf
Hi Pragya,
I’d use http://docs.marklogic.com/xdmp:sha256, or if you like to combine it
with a secretkey, xdmp:hmac-sha256..
Cheers,
Geert
From:
mailto:genera
o: MarkLogic Developer Discussion
mailto:general@developer.marklogic.com>>
Date: Tuesday, November 15, 2016 at 7:53 AM
To: MarkLogic Developer Discussion
mailto:general@developer.marklogic.com>>
Subject: [MarkLogic Dev General] Hash of pdf
Hi,
We need to find the hash of pdf file text.
Is
Hi,
We need to find the hash of pdf file text.
Is this possible in MarkLogic/xquery?
Thanks
Pragya
"This e-mail and any attachments transmitted with it are for the sole use of
the intended recipient(s) and may contain confidential , proprietary or
privileged information. If you are not the