title: Sending images over a socket and displaying it
body: <p>I am trying to send an image from a server to the client and then make the client display it with show(), but i'm having some problems.
  this is the server code that sends the image:</p>
  
  <pre><code>        im = ImageGrab.grab()
          if not os.path.exists(r'C:\screens'):
              os.makedirs(r'C:\screens')
          im.save(r'C:\screens\screen.jpg')
          data = open(r'C:\screens\screen.jpg', 'r')
          data = data.read()
          client_socket.send(str(data))
  </code></pre>
  
  <p>Now, obviously i can't send a file through a socket so i have send it as a string, but then, i don't know how to use show() in the client because you can't use show() on a string, and I have no idea how to pull this off.
  As you can see im pretty much a beginner in python so if the solution is simple and straightforward I'm sorry about that.
  i'll appreciate any help, thanks!</p>