Base 64 Decode
The Base 64 Decode action transforms a base64 representation (a string of odd looking text) back into the original binary or text data.
Base 64 Decode is available as a part of Technology Preview Extension.
Input tab
Parameter | Description |
---|---|
Encoded String | The Base64 encoded string. |
Output tab
Parameter | Description |
---|---|
Binary | The Binary or text equivalent of the encoded string |
Binary Length | The length of the Binary. |
Base64 Decode: Example
This example describes a trigger that decodes a base64 encoded string. The encoded string is stored in the LocalVariable as described in the Base 64 Encode. This example will extend the Base 64 Encode and convert the encoded string to original string.
- Create a new trigger and set it to On-Demand event type.
- Create a Local variable and assign it to STRING type.
- Set Reporting to On in the Settings tab.
- Drag and drop the Base64 Encode action on the Canvas Editor.
- Drag and drop the Base64 Decode action on the Canvas Editor.
- Drag and drop the End Execution (Success).
- Join all the blocks.
- Double-click Base64 Encode block.
- Click Input tab of the Base64 Encode, under
Value, enter HELLO WORLD.
- Click Output tab of the Base64 Encode, under the Value for Encoded String, select the LocalVariable created.
- Double-click Base64 Decode block.
- Click the Input tab of Base64 Decode, under value select the LocalVariable created
- When the trigger is saved and started, a report is
generated.
After trigger execution, Binary contains the decoded string. As you see it is the exact input "Hello World" as present in the Base 64 Encode.