import base64


def get_base64_file(filename):
    """
    Load a file in as base64 binary
    Parameters
    ----------
    filename: string
        Path to file to load
    """
    fin = open(filename, "rb")
    b = fin.read()
    b = base64.b64encode(b)
    fin.close()
    return b.decode("ASCII")