sender icon indicating copy to clipboard operation
sender copied to clipboard

Add file open 'rb' mode to Attachment example

Open command-tab opened this issue 6 years ago • 1 comments

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

command-tab avatar Dec 11 '18 17:12 command-tab

Poke 😃

command-tab avatar Feb 17 '22 05:02 command-tab