Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Deflate gzip with qUncompress , how can i know the expected file size ?
Forum Update on Monday, May 27th 2025

Deflate gzip with qUncompress , how can i know the expected file size ?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 5.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    c0debreak
    wrote on last edited by
    #1

    Hi,

    I'm trying to deflate a gzip encoded network response , i checked out document of qUncompress , it says i must prefix the packed data , with extracted data size , but how ? There's no field indicating that for a normal HTTP response.

    Thanks !

    1 Reply Last reply
    0
    • C Offline
      C Offline
      c0debreak
      wrote on last edited by
      #2

      Never mind, i fixed the problem with zlib , just check out zlib samples should help.

      Besides , qUncompress is incompatible with http gzipped stream

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Morix Dev
        wrote on last edited by
        #3

        I do not know if it can be useful anymore, but I've developed a very simple class for performing GZIP compression/decompression using ZLIB...

        You can find the full code "here":http://stackoverflow.com/questions/2690328/qt-quncompress-gzip-data/24949005#24949005

        /Morix

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved