I have a Silverlight application in which I call my WCF service to get data from the database. If there is a small number of records then it's working fine, but if there are many records then it throws a System.OutOfMemory exception.
I have traced it in a WCF error log file. Are there any ways to compress the data which is coming from WCF to the Silverlight application?