Encode BASE 64 Dynamic Action

About

The Encode BASE 64 Action converts string into BASE 64 format

Base64 encoding is a way to convert binary data (like images, audio, or even executable code) into a text-based format. This is particularly useful when you need to transmit data over channels that primarily support text, such as email or when including data within web pages.

Here’s how it works:

  1. Binary to Text: Base64 takes your binary data and translates it into a string of ASCII characters. These characters are limited to a set of 64 characters (hence the name “Base64”), including uppercase and lowercase letters, numbers, and a few symbols.

  2. Why 64 Characters? Using 64 characters allows Base64 to represent 6 bits of binary data with each character. This is efficient because 3 bytes (24 bits) of binary data can be represented by 4 Base64 characters (4 x 6 bits = 24 bits).

  3. Padding: Sometimes, the original binary data doesn’t perfectly align with the 6-bit chunks. In these cases, padding characters (usually =) are added to the end of the Base64 string to ensure it’s a multiple of 4 characters.

Common Uses:

  • Email: Base64 is used to encode email attachments so they can be transmitted as text.
  • Web Pages: You might see Base64 used to embed images or other data directly within HTML or CSS code.
  • Data Storage: Some systems use Base64 to store binary data in text-based formats like XML.

Important Notes:

  • Not Encryption: Base64 is not a form of encryption. It’s simply a way to represent binary data in text. Anyone can decode a Base64 string back to the original binary data.
  • Size Increase: Base64 encoding increases the size of the data by roughly 33%. This is because you’re representing 3 bytes of data with 4 characters.

Metadata tab

Encode BASE 64 Action - Metadata tab
 

  1. The Write Variables option ensures that the “Package Action” logs the variable values into the “Action vars before log file” before the action is executed and logs the updated variable values into the “Action vars after log file” after the action completes.
  2. This option is typically used for debugging and is not recommended in a production environment.
  3. It can be globally disabled through the options dialog .

Parameters tab

Encode BASE 64 Action - Parameters tab

Variables tab

The Variables tab defines the variables to be updated during the action’s execution.

Encode BASE 64 Action - Variables tab

Execution log tab

The Execution log tab is populated after the action is executed. Double click on the row to view the log.

Encode BASE 64 Action - Execution log tab
  1. Json Object Loop Action
  2. Json Array Loop Action
  3. Escape String Action
  4. UnEscape String Action
  5. Json To String Action
  6. Get JSON Object Property
  7. Set JSON Object Property
  8. Decode BASE 64 Dynamic Action
  9. Encode BASE 64 Dynamic Action

For more technologies supported by our ETL Software see Advanced ETL Processor Versions

Confused? Ask question on our ETL Forum

Posted on February 12, 2025 • 3 min read • 493 words
www.etl-tools.com About Support Pricing Cookies Policy Term Of Use Privacy Policy License