import base64


def get_file_as_base64(file_path:str) -> str:
    """
    Returns a file content as base64.
    """
    with open(file_path, 'rb') as output:
        return str(base64.b64encode(output.read()))