title: Converting List to Stream and vice-versa
body: <p>I am having trouble of passing large data from WCF to consumer. I have set all the needed configuration but still encountering Insufficient Memomy exception. Now the other way to solve this problem is to convert the list object to Stream. I have search on how to convert the Object to Stream but can't find exactly what I want. For example I have an Object like this <code>IList&lt;Person&gt;</code>I need to convert this to <code>Stream</code> and from <code>Stream</code> to <code>IList&lt;Person&gt;</code>. Any help please.</p>