Tips / Examples on sending an Image file (jpeg, png) over socket programming?

前端 未结 2 1285
深忆病人
深忆病人 2021-01-21 12:44

I\'ve heard that we can somehow send an image file with binary over a socket... But I have no idea on how to convert an image file into binary or how to even think of sending it

2条回答
  •  鱼传尺愫
    2021-01-21 13:06

    Any image files you have are already binary. You can just send them over the socket.

提交回复
热议问题