diff --git a/inventree_phomemo/phomemo_label.py b/inventree_phomemo/phomemo_label.py index a0b0c04..5d99aa0 100644 --- a/inventree_phomemo/phomemo_label.py +++ b/inventree_phomemo/phomemo_label.py @@ -63,7 +63,7 @@ class PhomemoLabelPlugin(LabelPrintingMixin, SettingsMixin, InvenTreePlugin): print_socket.settimeout(5) print_socket.connect((ip_address, port)) data = label_image.tobytes("PNG") - print_socket.send(data.encode()) + print_socket.send(data) print_socket.close() except Exception as error: raise ConnectionError('Error connecting to printer server: ' + str(error))