Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 80876

Digital Signature - Store as image and display

$
0
0

Hi,

I am using the Mendix Digital Signature widget on a form that requires two signatures (Requestor and Approver). Once the 'Requestor' signs and confirms the form, the 'Approver' will see the form in a read-only page, and should see the 'Requestor' signature as an image so they cannot change the signature. (Since the widget has a 'reset signature' option)

I understand that the digital signature is stored as a base64encoded unlimited string, and in order to save it it must be decoded using the Base64DecodeToFile Java Call from CommunityCommons.  I am using this Model Share from another forum post to try to make this work. (https://modelshare.mendix.com/models/f7e93184-fa93-41e9-81ab-47c7ec93f9e7/signature-store-signature-as-image)

While replicating this model, I receive an error on the Base64DecodeToFile step that says:

com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.IllegalArgumentException: Source file is null
    at ProcurementModule.ACT_SetDigitalSignatureURL (JavaAction : 'Base64DecodeToFile')

 

Can anyone guide me in the right direction to either fix the error I receive or a better way to solve the problem?

Once the error is resolved and I am able to save the signature to the file object, how do I display this as an image within the Mendix App?

 

Thank You,

 

Jeff

 

 


Viewing all articles
Browse latest Browse all 80876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>