Flask-SocketIO send images
问题 I am currently working on a project that uses Flask-SocketIO to send things over the internet, but I came across this question. Question: Is there any way to send images in Flask-SocketIO ? I did some googling but no luck for me. 回答1: Socket.IO is a data agnostic protocol, so you can send any kind of information. Both text and binary payloads are supported. If you want to send an image from the server, you can do something like this: with open('my_image_file.jpg', 'rb') as f: image_data = f