Encodes a file to a Base64 string. Reads the specified file in streaming 8 KB chunks and produces a Base64 encoded string representation, which is suitable for embedding binary data in text-based formats such as JSON or XML payloads.
- Label: Select file to encode
- Description: Path to the file that will be encoded.
- Required: Yes
- Default: None
- Constraints: None
Returns a STRING containing the Base64 encoded string representation of the file.
Throws BotCommandException when the file does not exist at the specified path, when an I/O error occurs while reading the file, or when an unexpected error occurs during encoding.
