Word (Fill) - upload to image

Demonstrate a example for the function b64img()

To display an image from an upload, the upload must be converted into a Base64 string. The string is then transferred to the Word document and converted back into an image.

 

Therefore, we first need a hidden field or variable in which the Base64 string is stored. In our example, this is the variable ‘varImgBase64String’, which was created under Variables.

 

Prepare the Word document and insert a field/placeholder with the corresponding name. To display the image, the function ‘b64img()’ is required. The placeholder in Word should then be, for example,

varImgBase64String.b64img()

In the workflow

 

1.) Create a ‘Base64 encode’ action in the workflow and select the upload element.

2.) Then create a ‘Change form values’ action and write the Base64 string (return value of the Base64 encode action) to the ‘varImgBase64String’ variable.

powered by XIMA® formcycle
all fields marked with a (*) are required and must be filled out