I'm getting the following exception: bytes-like object is required, not 'str' while dealing with BLOBs with a DB2 database.
After debugging, I found a probable culprit in the file db2.py:
The line obj = base64.b64encode(str(obj)) is broken in Python 3 since obj is most likely of bytes type and this str() treatment only works for Python 2.