I tried python code and got (with python3) TypeError TypeError: a bytes-like object is required, not 'str'
When I added the coding it seems to work
import base64 dataString = 'Hello World!' dataBytes = dataString.encode("utf-8") encoded = base64.b64encode(dataBytes) print(encoded)
source share