Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Inflate large files in iOS with QZipReader
Forum Updated to NodeBB v4.3 + New Features

Inflate large files in iOS with QZipReader

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 974 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.
  • C Offline
    C Offline
    ChrisGoz
    wrote on last edited by
    #1

    Has anyone had any luck unzipping a large zip file (250MB) in iOS?

    I have successfully used QZipReader and QZipWriter classes for handling large files (following Bryan’s excellent tutorial at: http://voidrealms.com/index.php?r=tutorial/view&id=365) on OSX and Android, but when I deploy my project to iOS, I get a memory error. In particular, my iPad does not want to fetch all the inflated data into memory before writing it to file.

    Has anyone had any success accessing zlib’s inflate method within a loop that reads chunks / writes them to file in each pass, until Z_STREAM_END is returned?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Unless I'm mistaken "this":http://www.zlib.net/zpipe.c example shows what you want to do.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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