Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to unzip bytes in memory

how to unzip bytes in memory

Scheduled Pinned Locked Moved C / C++ / MFC
performancetutorialquestion
3 Posts 3 Posters 0 Views 1 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.
  • N Offline
    N Offline
    Namtaerg
    wrote on last edited by
    #1

    I read the characters from local file compressed by gzip, and want to uncompress the characters into another bytes buffer, not into local file. How can I get it.

    enhzflepE M 2 Replies Last reply
    0
    • N Namtaerg

      I read the characters from local file compressed by gzip, and want to uncompress the characters into another bytes buffer, not into local file. How can I get it.

      enhzflepE Offline
      enhzflepE Offline
      enhzflep
      wrote on last edited by
      #2

      Perhaps with the zLib library?. It is what gzip used in the first place, after all. With the added advantage of not needing to load the file first, and the additional bonus of being able to seek/read from a compressed file as though it were a standard non-compressed file. zLib gzip file access functions[^]

      1 Reply Last reply
      0
      • N Namtaerg

        I read the characters from local file compressed by gzip, and want to uncompress the characters into another bytes buffer, not into local file. How can I get it.

        M Offline
        M Offline
        Madhu Nair 0
        wrote on last edited by
        #3

        Using managed GZipStream[^] class. For unmanaged apps check CGzip[^] class found in codeproject.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups