BinaryData Client Side

Stable version 1.0.3 (Compatible with OutSystems 11)
Other versions available for 10
Published on 11 Jul by 
5.0
 (6 ratings)

BinaryData Client Side

Documentation

Instructions - Transform Binary to Base64


1. Let's create the dependencies.

Go to Manage Dependencies or Click Ctrl + Q and select all the elements from the "BinaryData_ClientSide" module.

Manage Dependencies


2. Adding the variables for transformation.

Create 2 variables. The first one, rename it to "BinaryData" and place the Data Type as Binary to pass for the transformation. The second one rename it to "Base64" and place the Data Type as text to receive the result of the transformation.


3. Implementing the transformation in a flow.

Create a Client Action and fill the inputs to execute the transformation.


Name the client action to "TransformBinaryToBase64".

Go to Logic and Drag and Drop the "BinaryToBase64" action and an Assign to the flow.


TransformBinaryToBase64


Now we can fill the inputs as the images below.


Client Action

Assign


Instructions - Transform Base64 to Binary


1. Let's create the dependencies.

Go to Manage Dependencies or Click Ctrl + Q and select all the elements from the "BinaryData_ClientSide" module.

Manage Dependencies


2. Adding the variables for transformation.

Create 2 variables. The first one rename it to "Base64" and place the Data Type as text to pass for the transformation. The second one, rename it to "BinaryReturnedFromBase64" and place the Data Type as Binary to receive the result of the transformation.


3. Implementing the transformation in a flow.

Create a Client Action and fill the inputs to execute the transformation.


Name the client action to "TransformBase64ToBinary".

Go to Logic and Drag and Drop the "Base64ToBinary" action and an Assign to the flow.


TransformBase64ToBinary


Now we can fill the inputs as the images below.


Client Action

Assign


Instructions - Transform Binary to Text


1. Let's create the dependencies.

Go to Manage Dependencies or Click Ctrl + Q and select all the elements from the "BinaryData_ClientSide" module.

Manage Dependencies


2. Adding the variables for transformation.

Create 2 variables. The first one, rename it to "BinaryData" and place the Data Type as Binary to pass for the transformation. The second one rename it to "Text" and place the Data Type as text (the one who is the result of transformation).


3. Implementing the transformation in a flow.

Create a Client Action and fill the inputs to execute the transformation.

Name the client action to "TransformBinaryToText".

Go to Logic and Drag and Drop the "BinaryDataToText" action and an Assign to the flow.


TransformBinaryToText


Now we can fill the inputs as the images below.

Client Action

Assign


Instructions - Transform Text to Binary


1. Let's create the dependencies.

Go to Manage Dependencies or Click Ctrl + Q and select all the elements from the "BinaryData_ClientSide" module.

Manage Dependencies

 


2. Adding the variables for transformation.

Create 2 local variables. The first one rename it to "Text" and place the Data Type as text to pass for the transformation. The second one, rename it to "BinaryReturnedFromText" and place the Data Type as Binary to receive the result of the transformation


3. Implementing the transformation in a flow.

Create a Client Action and fill the inputs to execute the transformation.


Name the client action to "TransformTextToBinary".

Go to Logic and Drag and Drop the "TextToBinaryData" action and an Assign to the flow.


TransformTextToBinary


Now we can fill the inputs as the images below.


Client Action

Assign


Instructions - Calculate the Size


1. Let's create the dependencies.

Go to Manage Dependencies or Click Ctrl + Q and select all the elements from the "BinaryData_ClientSide" module.

Manage Dependencies


2. Adding the variables for Calculation.

Create 2 local variables. The first one, rename it to "BinaryData" and place the Data Type as Binary to pass for the calculation. The second one rename it to "Size" and place the Data Type as text to receive the result of the calculation.


3. Implementing the Calculation in a flow.

Create a Client Action and fill the inputs to perform the transformation.


Name the client action to "CalculateSize".

Go to Logic and Drag and Drop the "BinaryDataSize" action, after Drag and Drop the "BinarySizeFormat" action and an Assign to the flow.

CalculateSize action


Now we can fill the inputs as the images below.

BinaryDataSize

BinarySizeFormat

Assign