流不支持搜索操作 [英] Stream Does not support seek operations

查看:209
本文介绍了流不支持搜索操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过TCP发送可执行文件,并且它返回并下载此流不支持查找操作".我的主要目标是能够从更新服务器向客户端发送应用程序更新,我想知道 如果有更简单的方法可以做到这一点.另外,如果有一种方法可以通过我的TCP服务器接收信息.

I was attempting to send an executable through TCP and it returned with and download "This stream does not support seek operations". My primary goal is to be able to send application updates to the Client from a update server and I was wondering if there is an easier way to do that. Also if there is a way to receive the info through my TCP server.

推荐答案

在ASP.Net样式Web服务器上发布二进制数据的预期方法是使用HTTP处理程序:
https://msdn.microsoft.com/en-us/library/bb398986.aspx

The intended way to publish binary data on a ASP.Net style Webserver is to use HTTP Handlers:
https://msdn.microsoft.com/en-us/library/bb398986.aspx

通常,客户端的工作是向服务器查询更新.推送通知是可能的,但我不知道它们是否是自动更新过程的良好模式.

Generally it is the job of the client to query the server for updates. Push notifications are possible, but I do not know if they are a good pattern for a automatic update process.


这篇关于流不支持搜索操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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