Skip to content

Conversation

@command-tab
Copy link

@command-tab command-tab commented Dec 11, 2018

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

Without this mode, Python attempts to decode the file contents as text and fails with:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
@command-tab
Copy link
Author

Poke 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants