title: Gzip Json request
body: <p>Hi I have following type of json object with lot of files and stuff being uploaded in one request from android,Number of pictures may vary and can be more than the following example. There is also lot of other small key values like address,phone etc going on the example</p>
  
  <pre><code>   {
          "pdf": "base64stringvalue",
          "name": "username",
          "picture": "base64string",
          "picture1": "base64string",
          "picture2": "base64string",
          "picture3": "base64string",
          "picture4": "base64string",
          "picture5": "base64string",
          "picture6": "base64string",
          "picture7": "base64string",
          "picture8": "base64string",
          "picture9": "base64string"
      }
  </code></pre>
  
  <p>i want to gZip the object and was wondering what would be the best way to do so,based on using gzip resources once(a) and multiple times (b)</p>
  
  <p>(a)should i gzip compress whole json object on the client &amp; decompress it on the server</p>
  
  <pre><code>{"object":"gzipped(wholeObject)"}
  </code></pre>
  
  <p>(b) Should i gzip only the base64string values in the object ( basically compressing and decompressing each entity seperately) and something like this</p>
  
  <pre><code>{
      "pdf": "gzipped(base64string)",
      "name": "username",
      "picture": "gzipped(base64string)",
      "picture1": "gzipped(base64string)",
      "picture2": "gzipped(base64string)",
      "picture3": "gzipped(base64string)",
      "picture4": "gzipped(base64string)",
      "picture5": "gzipped(base64string)",
      "picture6": "gzipped(base64string)",
      "picture7": "gzipped(base64string)",
      "picture8": "gzipped(base64string)",
      "picture9": "gzipped(base64string)"
  }
  </code></pre>