Encode File To Base64 • AI Agent SDK
encode_file_to_base64: Base64-encode a file.
encode_file_to_base64
Function
</div>
This function is defined in the agents module.
Base64-encode a file.
Signature
def encode_file_to_base64(file_path: str) -> strParameters
ParamField
strNo description available.
Returns
ResponseField
strThe result of the operation.
Uses
decodebase64.b64encodef.read
Used By
Source
View on GitHubpraisonaiagents/agents/agents.py at line 59