我想将图片从服务器发送到客户端 [英] I want to send picture from server to client

查看:79
本文介绍了我想将图片从服务器发送到客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

private void button6_Click(object sender, EventArgs e)        {                       try            {                byte[] depthPixelData = new byte[640 * 480]; // your data                Image<Bgr, Byte> img1 = new Image<Bgr, byte>("F:\\6.png");                img1.Bytes = depthPixelData;                acc.Send (depthPixelData ,0,depthPixelData.Length ,0);            }            catch            {                MessageBox.Show("Failure....");            }                    }




但图片dosnt发送....可以帮助我


but the picture dosnt send ....can one help me

推荐答案

您好 huda-najeeb,

感谢您发布此处。

您的问题,你怎么发送图像?按文件或流发送?

For your question, how do you send the image? Send it by file or stream?

如果按文件发送,可以从代码项目下载源文件以供参考。

If you send by file, you could download the source file from the code project for reference.

https://www.codeproject.com/Articles / 461938 /从服务器到客户端的小文件传输

此链接也很有用。

https://social.msdn.microsoft.com/Forums/windows/en-US/9082a568-5a96-4933 -8c20-3fa6f1bbcb45 / how-to-send-and-receive-text-file-in-c-through-tcpip-connection?forum = winforms

最诚挚的问候,

Wendy


这篇关于我想将图片从服务器发送到客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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