im = Image.open(filePath)
when I tried to encode the data read from the image on base64, it returns an error:
File "Steganography.py", line 42, in msgToXml encodedMsg = base64.b64encode(self.msg) File "/opt/python3/current/lib/python3.4/base64.py", line 62, in b64encode encoded = binascii.b2a_base64(s)[:-1] TypeError: 'str' does not support the buffer interface
This works when I'm at home using Ubuntu (python 2.7). But it shows an error when I use the school machine (python3.4). How can i solve this?
source share