In my WCF service, I am retrieving data from SQL server using Command.ExecuteReader()
method. The data size is very large (around 1+ GB) and transferring this data to client over netTcp binding.
I am planning to implement stream mode instead of buffered mode in WCF. Can anyone point me to any article or document to do the same.
In simple words, my objective is to convert IDataReader to stream object that will transfer to client and client side, want to convert this stream back to dataset/datatable or anything that can be bind with Grid.
I cannot convert IdataReader to IEnumerable as data is coming through SP and no of columns in output set keep changing (I don;t want to add no of column limitation in code).
Ultimately, final communication will be done on dataset from WCF service to client app. If any solution like converting Dataset to stream, sent it to client and at client, convert stream back to dataset will also solve my problem.