Convert a base64 string to text by using the Base64Decode component in RPA Desktop Design Studio.

Before you begin

Role required: none

About this task

You can configure the properties for the Base64Decode component. For more information about these properties, see Properties of the String Utilities components.

Procedure

  1. In the Toolbox pane, navigate to Utilities > String Utilities.
  2. Drag the Base64Decode component to the Design surface.
  3. To configure the input field, see Configure port properties.
  4. Connect the data and control ports of the Base64Decode component to the corresponding ports of the other components as described in the following table.
    Port type Purpose of connection Data port type Data type
    Base64String Used to specify Base64 string that converts to a normal string.

    Takes the encoded Base64 string from a previously executed component, such as Base64Encode component.

    For example, if you input a value like 1234test in the Base64Encode component and then connect it to the Base64Decode component, running the components will result in the Base64Encode component encoding the value 1234test and passing it to the Base64Decode component. The Base64Decode component then decodes the encoded value, such as "MzIzNDIzdGVzdHR0" and retrieves the original output as "1234test".

    Figure 1. Base64Encode and Base64Decode components
    Encoded text decoded by Base64Decode component
    Data In String
    Return Returns a string representing plain text. Data Out String
  5. (Optional) To test the component, under the DESIGN tab, click Run.