0

I am using a python library urllib3. The service I am calling returns a byte string

        https = urllib3.PoolManager(cert_reqs=ssl.CERT_NONE)

        Response = https.request(method='GET', url=f"https://smart/mem/2.0/files/{fileId}/content", headers=headers)

I want to be able to store this byte string in a variable and convert to an image later.

How can I extract the byte string from my response?

Baba
  • 2,059
  • 8
  • 48
  • 81

0 Answers0