title: Convert String Data to Binary Image
body: <p>I am using Qt and I am new to Qt. I am getting stream of string data from server in particular port.</p>
  
  <p>I am receiving 1 and 0. each time I receive one line like this</p>
  
  <pre><code>1111110001111111111111111111100000000000011111111111
  </code></pre>
  
  <p>After getting <code>n</code> number of times I need to create binary image file from the data. <code>1</code> for white and <code>0</code> for black.</p>
  
  <p>How to do this? I already implement the receiving data but I have no idea how to convert this data to image. </p>
  
  <p>Please help me to find the solution for this problem.</p>