title: Return Zip file as Response in Web Api
body: <p>Hi I have created a web api application and I am returning  response  as text file. Now I want to return a zipped file so that its size is reduced</p>
  
  <p>This is my controller code</p>
  
  <pre><code>    public HttpResponseMessage Get(String parameter)
      {
          var response = new HttpResponseMessage(HttpStatusCode.OK);
          response.Content = new StringContent(informationcontext.Records(parameter));
          response.Content.Headers.ContentType = new MediaTypeHeaderValue("text/plain");
          response.Content.Headers.ContentDisposition = new ContentDispositionHeaderValue("attachment")
          {
              FileName = "sample"
          };
  
  
          return response;
  </code></pre>
  
  <p>}</p>
  
  <p>Can any one help me in this?</p>