advent_matthewa

Retrieving the Actual Signature from a Capture

0 votes

My 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

0 votes

Hi 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

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Retrieving the Actual Signature from a Capture

0 votes

That 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

0 votes

Hi 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

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off