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. The Lounge
  3. i'm a brane jeenyus

i'm a brane jeenyus

Scheduled Pinned Locked Moved The Lounge
designcomgraphicsiottools
10 Posts 6 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.
  • H Offline
    H Offline
    honey the codewitch
    wrote on last edited by
    #1

    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

    P D Mircea NeacsuM Graeme_GrantG 4 Replies Last reply
    0
    • H honey the codewitch

      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

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      I believe in you. You can make it work.

      H 1 Reply Last reply
      0
      • P PIEBALDconsult

        I believe in you. You can make it work.

        H Offline
        H Offline
        honey the codewitch
        wrote on last edited by
        #3

        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

        OriginalGriffO 1 Reply Last reply
        0
        • H honey the codewitch

          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

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #4

          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!

          "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

          1 Reply Last reply
          0
          • H honey the codewitch

            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

            D Offline
            D Offline
            David ONeil
            wrote on last edited by
            #5

            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

            H 1 Reply Last reply
            0
            • D David ONeil

              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

              H Offline
              H Offline
              honey the codewitch
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              • H honey the codewitch

                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

                Mircea NeacsuM Offline
                Mircea NeacsuM Offline
                Mircea Neacsu
                wrote on last edited by
                #7

                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

                H 1 Reply Last reply
                0
                • H honey the codewitch

                  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

                  Graeme_GrantG Offline
                  Graeme_GrantG Offline
                  Graeme_Grant
                  wrote on last edited by
                  #8

                  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 fear not the man who has practised 10,000 kicks once, but I fear the man who has practised one kick 10,000 times.” - Bruce Lee.

                  H 1 Reply Last reply
                  0
                  • Graeme_GrantG Graeme_Grant

                    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

                    H Offline
                    H Offline
                    honey the codewitch
                    wrote on last edited by
                    #9

                    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

                    1 Reply Last reply
                    0
                    • Mircea NeacsuM Mircea Neacsu

                      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

                      H Offline
                      H Offline
                      honey the codewitch
                      wrote on last edited by
                      #10

                      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

                      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