how to send and receive a image using c++ socket?

I want to send a image ,this image is a grab by my pc screen, My program's ui is using Qt,so this image through the QPixmap::grabWindow got. I would try using QTcpSocket send it ,and I do it like that,but I can't receive the image that i am sent.So I wanna use the direct c++ send and receive this image file.but I do not know how to do
thanks for you help.
Last edited on
Topic archived. No new replies allowed.