使用C#通过套接字发送pdf文件 [英] send pdf file through sockets using c#

查看:105
本文介绍了使用C#通过套接字发送pdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用c#通过套接字发送Word文件的pdf文件

How to send pdf file of word file through sockets using c#

推荐答案

看看C#的TcpClient和TcpListener类. http://msdn.microsoft.com/en-us/library/system. net.sockets.tcpclient.aspx [ ^ ]

http://msdn.microsoft.com/en-us/library/system. net.sockets.tcplistener.aspx [ ^ ]
Take a look at TcpClient and TcpListener class for C#.
http://msdn.microsoft.com/en-us/library/system.net.sockets.tcpclient.aspx[^]

http://msdn.microsoft.com/en-us/library/system.net.sockets.tcplistener.aspx[^]


/>
然后,您可以从另一个Socket或Networkstream中读取并将其写回到文件中:)

1.解决方案也是一个很好的答案..

--r4
U can just read the bytes from the PDF-File from a FileStream and send it over the Sockets or over a Networkstream..

Then you can read from the other Socket or Networkstream and write it back in a file :)

1. Solution also is also a good answer..

--r4


这篇关于使用C#通过套接字发送pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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