title: ZeroMQ pyzmq send jpeg image over tcp
body: <p>I am trying to send a jpeg image file through a ZeroMQ connection with pyzmq, but the output is 3 times the size of the input, and no longer a valid jpeg.  I load the image and send with...</p>
  
  <pre><code>f = open("test1.jpg",'rb')
  strng = f.read()
  socket.send(strng)
  f.close()
  </code></pre>
  
  <p>I receive and save with...</p>
  
  <pre><code>message = socket.recv()
  f = open("test2.jpg", 'w')
  f.write(str(message))
  f.close()
  </code></pre>
  
  <p>I am new to zmq, and I could not find any info on sending images.  Has anyone sent images through ZeroMQ, or have any ideas on how to find the problem?</p>