Base64 Encoder Activity
The Base64 Encoder activity converts an image file into a Base64 encoded string. This process is essential for embedding binary data directly within text-based formats or for secure transmission without external file dependencies.
| Field | Description | Requirement |
|---|---|---|
| File Name | The full path and name of the image file to be encoded. | Required |
| Result Base64 File Name | The full path and name for the output file that will contain the Base64 encoded string. | Required |
Action Types & Examples
Encode File to Base64 String
- Format: String
- Example Result: "iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="
Implementation Examples
Field Setup - File Name: C:\Robust\blueCar.png - Result Base64 File Name: C:\Robust\blueCar.b64
Execution Parameters - fileName: C:\Robust\blueCar.png - resultBase64FileName: C:\Robust\blueCar.b64
Technical Notes
The Base64 Encoder activity reads the binary content of the specified input file and converts it into a standard Base64 encoded string. This string is then written to the designated output file. Ensure that the input file exists and is accessible, and that the specified output directory has write permissions. The encoding adheres to RFC 4648 standards.