Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Send/Recieve file via QWebSocket

Send/Recieve file via QWebSocket

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 566 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • sitesvS Offline
    sitesvS Offline
    sitesv
    wrote on last edited by
    #1

    Hi!
    How to send/recieve file via QWebSocket if QWebSocket is using also just for message exchange?

    jsulmJ 1 Reply Last reply
    0
    • sitesvS sitesv

      Hi!
      How to send/recieve file via QWebSocket if QWebSocket is using also just for message exchange?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @sitesv What about https://doc.qt.io/qt-5/qwebsocket.html#sendBinaryMessage ?
      You could split bigger files in several binary messages.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      sitesvS 1 Reply Last reply
      0
      • jsulmJ jsulm

        @sitesv What about https://doc.qt.io/qt-5/qwebsocket.html#sendBinaryMessage ?
        You could split bigger files in several binary messages.

        sitesvS Offline
        sitesvS Offline
        sitesv
        wrote on last edited by sitesv
        #3

        @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?

        jsulmJ 1 Reply Last reply
        0
        • sitesvS sitesv

          @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?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @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.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          4

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved