Convert from ‘_io.BytesIO’ to a bytes-like object in python3.6?

It’s a file-like object. Read them:

>>> b = io.BytesIO(b'hello')
>>> b.read()
b'hello'

If the data coming in from body is too large to read into memory, you’ll want to refactor your code and use zlib.decompressobj instead of zlib.decompress.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)