title: Sending QVideoFrame through QTcpSocket
body: <p>I've been writing an application for mobile streaming.
  And now I got a problem with sending <em>QVideoFrame</em>. I need to convert it to <em>char*</em> for sending, so I used <em>bits()</em> method, but it seems to be wrong.<br>
  This is the code:</p>
  
  <pre><code>void FilterRunnable::sendFrame(QVideoFrame *frame)
  {
      QByteArray block;
      QDataStream stream(&amp;block,QIODevice::WriteOnly);
  
      frame-&gt;map(QAbstractVideoBuffer::ReadOnly);
  
      stream &lt;&lt; qint16(0) &lt;&lt; (char*)frame-&gt;bits();
      stream.device()-&gt;seek(0);
      stream &lt;&lt; qint16(block.size() - sizeof(qint16));
  
      skt.write(block);
  
      frame-&gt;unmap();
  }
  </code></pre>
  
  <p>So the question is, How to send QVideoFrame through QTcpSocket? Is it actually possible?</p>