tags:

views:

43

answers:

1

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 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?

+1  A: 

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

klausbyskov

related questions