def encode(input, output):
    raise NotImplementedError("encode: no file operations possible")
    #while True:
    #    s = input.read(MAXBINSIZE)
    #    if not s:
    #        break
    #    while len(s) < MAXBINSIZE:
    #        ns = input.read(MAXBINSIZE-len(s))
    #        if not ns:
    #            break
    #        s += ns
    #    line = binascii.b2a_base64(s)
    #    output.write(line)
Encode a file.
dataset/ETHPy150Open anandology/pyjamas/pyjs/src/pyjs/lib/base64.py/encode