Retrieving the Actual Signature from a Capture
Thursday, August 10, 2023 at 12:01pmMy company has a need to retrieve the actual signing stroke data that results from a CAPTURE type signature. It appears that this data is available already, but I cannot find documentation for the format of that data.
In the data returned by /api/packages/{packageId}, the key available at .documents[].approvals[].fields[].value contains what looks like a base64-encoded binary format.
At one point I found code that can convert images into this format, but no explanation how to read the format itself.
Is there anything OneSpan can provide to help read the data?
Thanks!
Reply to: Retrieving the Actual Signature from a Capture
Thursday, August 10, 2023 at 12:34pmHi Matthew,
Thanks for your post! There's an API to download the captured signature image per signer:
GET /api/packages/{packageId}/roles/{roleId}/signatureImage
Let me know how this API works for you.
Duo
Reply to: Retrieving the Actual Signature from a Capture
Thursday, August 10, 2023 at 01:32pmThat is a good start. However it appears that API will only give you access to the role's first captured signature. There are certain documents where click-to-sign isn't allowed, so we enable enforceCaptureSignature so that they have to sign all over again.
Reply to: Retrieving the Actual Signature from a Capture
Thursday, August 10, 2023 at 01:37pmHi Matthew,
Which programming language are you developing with? We have example codes to convert the base64 code to image format:
https://community.onespan.com/documentation/onespan-sign/codeshare/signature-conversion-tools-java-net-javascript-php
(Some examples above may only have encode function, not decode, but the algorithm is very similar)
Duo