Giter Club home page Giter Club logo

Comments (4)

bitbank2 avatar bitbank2 commented on August 10, 2024

You can work with the unzipped data very easily. Once you've opened the ZIP file and located the archived file you want to work with, you can read the data into a local buffer of any size - you can read one byte at a time if you like. Then you will write that data to a new file on the SDcard or other medium. The data is at your disposal.

int readCurrentFile(uint8_t *buffer, int iLength);

from unziplib.

samsmith94 avatar samsmith94 commented on August 10, 2024

Thank you very much for your help!

from unziplib.

samsmith94 avatar samsmith94 commented on August 10, 2024

One last question:
If I want to read it in multiple proportion, then I will need to call some sort of seek() implementaion, right?
Which is in my case int32_t mySeek(void *p, int32_t position, int iType)

So I need to move the file pointer, so that zip.readCurrentFile() know, whence I want to read iLength number of bytes.
But what is my file pointer in the example above?
I need to pass it to mySeek as an argument, but when I call it with myfile, it is not working.
I call it this way:

mySeek(&myfile, 0, SEEK_SET);

I also tried:

myfile.seekSet(0);

And I always get -102 as return value for readSize

int readSize = zip.readCurrentFile(l_Buff, BUFF_SIZE);

from unziplib.

samsmith94 avatar samsmith94 commented on August 10, 2024

Sorry, I forgot to call zip.openCurrentFile();
๐Ÿ˜„

from unziplib.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.