Marcin Rak <m...@sightlineinnovation.com>: > b64_encoded_data = base64.b64encode(data) > > my b64_encoded_data variables holds, would you believe it, a string as > bytes!.
It doesn't much matter one way or another. The logic is that whenever you encode objects, you typically want the output as bytes. However, it's trivial to decode the bytes into a string if that's what you need. Marko -- https://mail.python.org/mailman/listinfo/python-list