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. [SOLVED] qCompress - converting to Gzip
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] qCompress - converting to Gzip

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 4.5k Views 2 Watching
  • 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.
  • M Offline
    M Offline
    maximus
    wrote on last edited by maximus
    #1

    I followed this excellent post on how to convert zlib to gzip using qCompress.

    I'm doing this because I need to use a webservice that only accept "gzip or zip" format.

    Here is my code for zipping the file
    Here is the error message I get when I unzip the file with 7zip.

    Weird thing is that the file still extract with the same size as the original, it only gives a warning that CRC File is broken. The file extension is also missing.
    Trying to find a solution,
    Thanks


    Free Indoor Cycling Software - https://maximumtrainer.com

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi,
      this won't answer your question, but there is a library, KArchive, that you could use for that. It's part of KDE Frameworks 5: http://api.kde.org/frameworks-api/frameworks5-apidocs/

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Huulivoide
        wrote on last edited by
        #3

        If using an external library is not a problem, you could use KArchive

        M 1 Reply Last reply
        0
        • H Huulivoide

          If using an external library is not a problem, you could use KArchive

          M Offline
          M Offline
          maximus
          wrote on last edited by
          #4

          Thanks guys,

          I found the problem, My CRC function was not setting the good one, will upload good code once it works.


          Free Indoor Cycling Software - https://maximumtrainer.com

          1 Reply Last reply
          0
          • M Offline
            M Offline
            maximus
            wrote on last edited by
            #5

            Solved!
            Code

            Would be great to have KArchive bundled inside Qt if the license permit, I'm always up for using external library but I'm lazy checking licenses and doing all the plumbing.
            Or maybe Qt could add a parameters to qCompress to specifiy the type of zip file you want? Just food for thoughts..


            Free Indoor Cycling Software - https://maximumtrainer.com

            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