-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chunkwise write the uncompressed file. #3
Comments
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.
|
Thank you very much for your help! |
One last question: So I need to move the file pointer, so that zip.readCurrentFile() know, whence I want to read iLength number of bytes. 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); |
Sorry, I forgot to call zip.openCurrentFile(); |
Hi,
I could create a simple program to test your library with SdFat library, instead of standard Arduino SD.
But I realized, that I still have a problem.
I would like to implement FOTA, so I will download the application.zip file.
Then I want to unzip it (application.bin).
The .bin file is quite large (393216 byte). I don't have this much memory. (I have 56+4 KB of SRAM on STM32F429ZI).
So my question, how can I use your library, so that I can write this larga application.bin to the SD card in chunkwise manner?
Here is my code:
The text was updated successfully, but these errors were encountered: