anvesh3213 | Posts: 3

ESign

0 votes

Is it possible to Save the signature to database.? My requirement is that in one of the webpage(MVC C#) i need to sign and save the signature to database.


Duo_Liang | Posts: 3776

Reply to: ESign

1 votes

Hi Anvesh,

 

Do you mean to extract the signed handdrawn signature and saved in image? If that's the case, there's a SDK function allowing you to do so, you need the package ID as well as the role ID to identify which signature to download:

 

string packageId = "";

string roleId = "";
DownloadedFile signerImage = eslClient.SignatureImageService.GetSignatureImageForPackageRole(new PackageId(packageId ), roleId , SignatureImageFormat.JPG);
byte[] signerImageByte = senderImage.Contents;
try
{
    File.WriteAllBytes(".../signerImage.png", signerImageByte);
}
catch (Exception e)
{
    Debug.WriteLine(e);
}

 

Duo


anvesh3213 | Posts: 3

Reply to: ESign

0 votes

Thanks for the response Duo. This is exactly what I wanted.


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