We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to save the Signature image to a folder in an application?

Description

The Signature control by default records the drawn signature in Base64 string format for later regeneration. Hence, we can use this to store in folder in your application.

Solution

To store the drawn signature image in the application folder, follow the steps below:

  1. Initially convert the signature value to the Base64 string value by using the canvas toDataURL() method and then pass it to controller action by using jQuery AJAX post.
  2. Specify the file name and path to save the signature using FileStream.
  3. Convert the image’s Base64 string value to the image using BinaryWriter.

 

The following code explains how to store signature image to a folder in an application.

 

 

 

 

The below is the screenshot of the image stored in the folder by using the above codes

Article ID: Published Date: Last Revised Date: Platform: Control: Product Version:
7975 09/01/2017 09/01/2017 ASP.NET MVC Signature 13.4.0.53
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.