Member Avatar for RudyM
RudyM

Hi all,

I have a web application written in ASP.NET. All is working ok, except that I would like to compress the data being returned. The data is basically a List of custom models. Currently I do something like:

HttpResponseMessage json = Request.CreateResponse(HttpStatusCode.OK, my_models_list);

and return this from the method. How can I compress this? I do not have access to the server, so I can't change anything with the IIS server configuration. Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.