i'm a brane jeenyus
-
Update: I made a solution by extracting the deflated stream from the zip using a utility I wrote, and then working with that stream instead of the entire zip contents. The whole mess is here.[^] I just made a stupid. I spent a lot of time and effort getting an ESP32 widget to be able to update its firmware from a .zip file only to realize - after I got it all working - that zip files aren't practical for this, because they store all the information you need first at the END of the file. So you can't stream it over a serial port without reading the whole damned thing first, which isn't practical on this device. I got as far as emailing a colleague about it, producing a github repo and beginning to write an article here before it dawned on me. :rolleyes: Hours I can't get back. Oh well, you can still use the tech from something like an SD card.
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
-
I believe in you. You can make it work.
I can, just not with the .zip file format. Which I should have known upfront, considering I wrote the code the parse the format.
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
-
Update: I made a solution by extracting the deflated stream from the zip using a utility I wrote, and then working with that stream instead of the entire zip contents. The whole mess is here.[^] I just made a stupid. I spent a lot of time and effort getting an ESP32 widget to be able to update its firmware from a .zip file only to realize - after I got it all working - that zip files aren't practical for this, because they store all the information you need first at the END of the file. So you can't stream it over a serial port without reading the whole damned thing first, which isn't practical on this device. I got as far as emailing a colleague about it, producing a github repo and beginning to write an article here before it dawned on me. :rolleyes: Hours I can't get back. Oh well, you can still use the tech from something like an SD card.
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
I believe in you. You can make it work.
-
I can, just not with the .zip file format. Which I should have known upfront, considering I wrote the code the parse the format.
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
Stream it in reverse! :-D
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
-
Update: I made a solution by extracting the deflated stream from the zip using a utility I wrote, and then working with that stream instead of the entire zip contents. The whole mess is here.[^] I just made a stupid. I spent a lot of time and effort getting an ESP32 widget to be able to update its firmware from a .zip file only to realize - after I got it all working - that zip files aren't practical for this, because they store all the information you need first at the END of the file. So you can't stream it over a serial port without reading the whole damned thing first, which isn't practical on this device. I got as far as emailing a colleague about it, producing a github repo and beginning to write an article here before it dawned on me. :rolleyes: Hours I can't get back. Oh well, you can still use the tech from something like an SD card.
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
Can you somehow do a 'pre-zipper' that determines that information and redundantly stores it at the beginning of the file somehow?
Our Forgotten Astronomy | Object Oriented Programming with C++ | Wordle solver
-
Can you somehow do a 'pre-zipper' that determines that information and redundantly stores it at the beginning of the file somehow?
Our Forgotten Astronomy | Object Oriented Programming with C++ | Wordle solver
What I can theoretically do is extract the compressed stream from the zip, store that, and just decompress that.
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
-
Update: I made a solution by extracting the deflated stream from the zip using a utility I wrote, and then working with that stream instead of the entire zip contents. The whole mess is here.[^] I just made a stupid. I spent a lot of time and effort getting an ESP32 widget to be able to update its firmware from a .zip file only to realize - after I got it all working - that zip files aren't practical for this, because they store all the information you need first at the END of the file. So you can't stream it over a serial port without reading the whole damned thing first, which isn't practical on this device. I got as far as emailing a colleague about it, producing a github repo and beginning to write an article here before it dawned on me. :rolleyes: Hours I can't get back. Oh well, you can still use the tech from something like an SD card.
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
What you probably need is a stream encoder like ALDC. I see there is a C implementation[^] for it but I don't know if it will fit your needs.
Mircea
-
Update: I made a solution by extracting the deflated stream from the zip using a utility I wrote, and then working with that stream instead of the entire zip contents. The whole mess is here.[^] I just made a stupid. I spent a lot of time and effort getting an ESP32 widget to be able to update its firmware from a .zip file only to realize - after I got it all working - that zip files aren't practical for this, because they store all the information you need first at the END of the file. So you can't stream it over a serial port without reading the whole damned thing first, which isn't practical on this device. I got as far as emailing a colleague about it, producing a github repo and beginning to write an article here before it dawned on me. :rolleyes: Hours I can't get back. Oh well, you can still use the tech from something like an SD card.
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
Why not zip each file individually and group of small files as 1? 🤔
Graeme
"I fear not the man who has practiced ten thousand kicks one time, but I fear the man that has practiced one kick ten thousand times!" - Bruce Lee
-
Why not zip each file individually and group of small files as 1? 🤔
Graeme
"I fear not the man who has practiced ten thousand kicks one time, but I fear the man that has practiced one kick ten thousand times!" - Bruce Lee
I did. The central directory for a zip file is at the end of it, regardless of how many files are in the archive.
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
-
What you probably need is a stream encoder like ALDC. I see there is a C implementation[^] for it but I don't know if it will fit your needs.
Mircea
I just extracted the compressed stream and used that.
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix