Base64
Description
The Base64 part is used to encode and decode binary data by treating it numerically and translating it into a Base64 representation so that it's more easily transmitted in things like e-mail and HTML form data.
Use
Base64 encoding schemes are commonly used when there is a need to encode binary data that needs be stored and transferred over media that are designed to deal with textual data. This is to ensure that the data remains intact without modification during transport. Base64 is used commonly in for a number of operations, including sending email via MIME and storing complex data in XML.
The LogicNets Base64 part can be created by performing the following actions:
- Open the logicnet in the LogicNets Designer where you want to use the Base64 part.
- With your mouse in the logicnet Viewer screen (where you build your logicnets), right-click your mouse.
- Select "add node".
- Select "Process" (depending on the framework, you may also need to select "Base64" from the popup menu)
- Double-click on the newly added node to open the Editor pane. You may have to increase the size of the pane to see each of the tabs at the top. (Note: If the project is based on the framework, you may see the options of the Base64 part without needing to complete Step 6.)
- Click "text manipulation" and pull down to select "base64 encoder/decoder".
- Complete the parameters and click "save".
Editor Fields
Tab |
Field Name |
Description/Use |
Type/Options |
Optional/Mandatory |
Basic |
Operation Type |
This is the dropdown menu that tells the system to Encode or Decode the text. |
Text |
Mandatory |
Basic |
Single Line Output |
This is where you specify the type of output you want to have--either single-line text or not. |
Text |
Optional |
Basic |
Input Path |
This is where you define the text or provide a data object that will contain the text. |
Data Object/Text |
Mandatory |
Basic |
Output Path |
This is where you define the name of the place or variable name that will hold the converted text. This holds your results. |
Data Object/Text |
Mandatory |
Example
For an example of using the Base64 part, please download and import the following sample project in your workspace