Skip to main content

Data protocol

Maxime avatar
Written by Maxime
Updated over 3 weeks ago

Question

What is the Data Protocol plugin and how can it be used ?

Answer

The Data Protocol plugin allows you to include Base64 images that are stored in the data, in a Design & Compose template.

Installation instructions :

  • Close all Design & Compose applications

  • Download the step from the Marketplace

  • Install the plugin using the DeploymentConsole

  • Start the Design & Compose applications

Your data :
Add the following string to the Base64 image string in your data :
data:application/octet-stream;base64,

Your data will look like this :
<img src="data:application/octet-stream;base64,PD94bWwgdmVyc2 ... />

In the Designer :

  • Create an image object

  • Select the XML element containing the base64 image

  • In the data field formatting step of the data field wizard, select Passthrough

Now preview the template, you will see the image on the output.

Did this answer your question?