开发者

Returning an open data reader from a WCF Service

Is it possible to return a data reader from a WCF Service api to a client which is running on a different machine. The serialization mechanism being used is NetDataContractSerializer. The data reader 开发者_StackOverflow社区is being sent to the client to read chunks of binary data from the database. The data reader has a method GetBytes() which supports chunking.

Is above thing possible. Is anything wrong with this approach. Are there any alternatives to support chunking?


It does not make sense to return an open datareader from a WCF service. Please read the responses in this msdn forum thread.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜