FILE Encode image file to base64 function

The FILE Encode image file to base64 function in RPA.

Help CentreBuilding 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:

  1. Navigate to the process where you would like to add the FILE Encode image file to base64 function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the FILE Encode image file to base64 option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
FileYesText-The path to the image file
VariableYesText-Variable to store the base64 string

Output variables

VariableTypeDescription
VariableTextThe base64-encoded image data

Errors

ErrorDescription
File not foundThe specified file does not exist

Tips

  • Converts an image file to base64 encoding
  • Useful for embedding images in API calls

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.