Skip to content

Error while dealing with BLOBs in DB2 adapter #739

@hydren

Description

@hydren

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions