import base64


def zip_to_b64(filepath):
    """
    Takes a zip file and turns it to base 64.
    Args:
        filepath: Filepath of the folder to zip

    Returns:
        str: base 64 representation of zip folder.
    """

    # convert zip file to base64
    with open(filepath, "rb") as f:
        bytes = f.read()
        base64_bytes = base64.b64encode(bytes)
        base64_string = base64_bytes.decode('utf-8')  # convert to string
        return base64_string