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.
精彩评论