Showing results for 
Search instead for 
Did you mean: 

MDK - Send the signature in .bmp


Currently, the signature is being send in (.png) format. We are using these signature to print on smart form, however, the signature is displayed on smart form with a Grey background.

Is it possible to send the signature in (.bmp) ?

Please help.

Product and Topic Expert
Product and Topic Expert
0 Kudos


Were you able to resolve your issue? If any of the below responses helped you, then please mark the helpful answer by accepting it OR post an answer so others might benefit from your findings and then close this discussion.

Jitendra (SAP Community Moderator)

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

I'm certainly not an expert but if there isn't any out-of-the-box solution for this particular case I would look into sending to the backend the signature content in a base64 string instead of the usual object returned by the SignatureCapture MDK control. You could then add backend logic to process that base64 and save it in the desired format as per your requirement.

This code snippet might help you achieve the first part of this process:

    const platform = clientAPI.nativescript.platformModule;
    const signatureObject = clientAPI.evaluateTargetPath("#Page:OrderDetailMedia_CreateSignature/#Control:FormCellSignatureCapture0/#Value");
    let signatureContent;

    if (platform.isAndroid) {
        signatureContent = android.util.Base64.encodeToString(signatureObject.content, android.util.Base64.DEFAULT);
    } else if (platform.isIOS) {
        signatureContent = signatureObject.content.base64Encoding();

    return signatureContent

You need to use nativeScript's platform module since Android and iOS use different APIs to handle base64 content.