Send/Recieve file via QWebSocket
-
Hi!
How to send/recieve file via QWebSocket if QWebSocket is using also just for message exchange?@sitesv What about https://doc.qt.io/qt-5/qwebsocket.html#sendBinaryMessage ?
You could split bigger files in several binary messages. -
@sitesv What about https://doc.qt.io/qt-5/qwebsocket.html#sendBinaryMessage ?
You could split bigger files in several binary messages. -
@jsulm I understand. But I need to know for example file name. And how to know about last data message? Do I need to create my own protocol?
@sitesv said in Send/Recieve file via QWebSocket:
Do I need to create my own protocol?
Yes, I would first send file name and its size and then content.