socket.io-client-java
socket.io-client-java copied to clipboard
how to send image? and how to server receive the image?
how to send image? and how to server receive the image?
上传到文件服务器 socket传递连接
尴尬了,兄弟,你也是中国人啊,被识别出来了。。。
if you want to have the data encoded and use general wss, you might encode it with bas64 e.g.:
var data_base64 = new Buffer(fs.readFileSync(FILE_PATH, "binary"), "binary").toString('base64');
this is just a quick general solution, the other way would be using a direct buffered stream with 'socket.io-stream'
--- issue should be closed