import base64


def get_content_b64(filepath):
    """Given a filepath, return the base64 encoded representation of the
    file's content.
    """
    with open(filepath, 'rb') as f:
        content = f.read()
        return base64.b64encode(content).decode('utf-8')