We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8c1f2a5 + 4c92b04 commit 38f661bCopy full SHA for 38f661b
MEMENTO/IoT_Bird_Feeder/code.py
@@ -59,7 +59,7 @@
59
60
def send_jpeg_to_io():
61
# before we send the image to IO, it needs to be encoded into base64
62
- encoded_data = binascii.b2a_base64(jpeg).strip()
+ encoded_data = binascii.b2a_base64(jpeg).strip().decode("utf-8")
63
# then, send the encoded_data to Adafruit IO camera feed
64
print("Sending image to IO...")
65
io.send_data(feed_camera["key"], encoded_data)
0 commit comments