i am working on my project where i i want to capture video frames from my webcam and send to remote client in python, i am using opencv to capture frames but i have to send it to remote client frame by frame without saving in server...
I am stuck here since a week pls help me 
should i have to conver it to string to send via sockets? if yes then how?
PLS help me my code is 

```
import cv2
import socket
import base64

host = "localhost"
port = 6052

s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.bind((host,port))
s.listen(5)
print "server started...."
#if __name__ == "__main__":
while True:
    c, addr = s.accept()
    print "client connected..."
    capture = cv2.cv.CaptureFromCAM(0)
    #cv2.cv.NamedWindow('image')
    frame = cv2.cv.QueryFrame(capture)
    #cv2.cv.ShowImage('image', frame)
    #succ, ig = cv2.cv.LoadImage(capture)
    with open(frame,"rb") as f:
        es = base64.b64encode(f.read())
        stri = str.decode('base64','strict')
        print "string is " + stri
    #with open(ig, "rb") as f:
    #   b = f.read(87029)
    #  print "data = " + b
   # c.send(b)

   #k = cv2.cv.WaitKey(10)

   #if k % 256 ==27 :
        #break

#cv2.DestroyWindow('image')
    s.close()

```