如何通过TCP连接发送图像 [英] how to send an image via TCP connection

查看:108
本文介绍了如何通过TCP连接发送图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在开发一个客户端服务器应用程序.现在我想将图像发送给对手,对于应用程序的默认图像,我正在列表控件中发送图像的位置,以便对手可以从该位置获取图像.但是现在我想发送自定义图像.帮帮我.....

Hai

I am developing a client server application.Now i wanna send image to the opponent,for default images of application i am sending the position of image in list control so that opponent can take the image from that position.but now i wanna send the custom image. Help me.....

推荐答案

您可能需要在两者之间创建套接字连接,并使用该套接字连接发送数据.尝试用Google搜索"Windows套接字",互联网上有很多示例.
You probably need to create a socket connection between the two and use that to send the data. Try a Google search for "windows sockets", there are lots of samples around the internet.


这篇关于如何通过TCP连接发送图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆