Transporent gzip compressing for JSON in AJAX server

Home Forums kbmMW Transporent gzip compressing for JSON in AJAX server

Viewing 5 reply threads
  • Author
    Posts
    • #54666
      VadimMest
      Participant

      Hi

      I produce HTTP server for Android Application

      Android application sends HTTP POST request and kbmMW HTTP server sends JSON as result. Is there  some  trick for easy enable compressing (compress result stream and add application-mimetype : zip in header) without any special changing on the application side? As I have read, the zip compression is native for Android

      Thanks

    • #54667
      kimbomadsen
      Keymaster

      Hi,

      You would typically choose Content-Encoding: gzip as a header entry, and compress the DataStream of the service response.

      I will see if I can make it an easy built in support.

      best regards

      Kim/C4D

    • #54668
      VadimMest
      Participant

      Hi

      What is the right way to add compressing in server response?
      1. Write new TkbmMWAJAXZipResponseTransportStream class (based on TkbmMWAJAXResponseTransportStream)
      2. Write new compressor  class (similar as TkbmMW LZ Compression)

      Thanks

       

    • #55485
      VadimMest
      Participant

      Dear Kim

      >I will see if I can make it an easy built in support.

      I didn’t figure out how compress result. Did you make support for compress in current version kbmMW?

      Thanks
      Vadim Mescheryakov

    • #55488
      kimbomadsen
      Keymaster

      Ah… yes.. I did mention looking into that didn’t I.

      So you brought a bad conscience on me…. why I did not respond immediately.

      Next version automatically supports gzip compression on compressible mimetypes when the caller supports gzip compression.

      best regards

      Kim/C4D

    • #55495
      VadimMest
      Participant

      I look forward to

      Thanks

Viewing 5 reply threads
  • You must be logged in to reply to this topic.