Help Centre › Building Processes
This article describes the RPA File functionality to encode image file to base64.
For a full list of available functions, please read FILE functions.
Description
The FILE Encode image file to base64 function allows you to encode image file to base64.
Setting it up
To use the FILE Encode image file to base64 function, follow these instructions:
{{popups:rpas/add:action=file-encode-image}}
Once on a process map:
- Navigate to the process where you would like to add the FILE Encode image file to base64 function
- Click on the green button’s drop-down (right side of the green button labelled “Process”)
- On the menu that appears, click on the “+ Activity” item
- From here you can select the FILE Encode image file to base64 option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| File | Yes | Text | - | The path to the image file |
| Variable | Yes | Text | - | Variable to store the base64 string |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | Text | The base64-encoded image data |
Errors
| Error | Description |
|---|---|
| File not found | The specified file does not exist |
Tips
- Converts an image file to base64 encoding
- Useful for embedding images in API calls