sender
sender copied to clipboard
Add file open 'rb' mode to Attachment example
This PR adds 'rb'
to the Attachment example's open()
call. Without this mode, Python attempts to decode image attachment contents as text and fails with:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
Poke 😃