Arduino Char Array Size Constraints

Hello,

I would like to save data that I am receiving from API calls in a char array. The problem is the data is around 80KB however my Arduino IoT 33 has 32KB of memory. It will save data in a char array that 25000 bytes however when I go to 30000 or above the Arduino freezes. When I copy-paste the entire data to a char array without specifying the size it works fine, however, when receiving data over API in chunks of 10KB it won't save the entire 80KB. Is there a way to go around this? A response will be appreciated.

You've posted in the programming section of the forum, not the vague hand-waving section.

Have you forgotten something?

Is there a way to go around this?

Is there a way that you can store 80 pounds of flour in a 32 pound sack? I think you can answer that.

Moderator edit : removed offensive language

is there a way to store this data in my CPU flash memory which is 256KB as opposed to SRAM which is 32KB?

hr24612:
is there a way to store this data in my CPU flash memory which is 256KB as opposed to SRAM which is 32KB?

Maybe. Post a link to the device you have.

Here you go:

https://store.arduino.cc/usa/nano-33-iot

Is this question in reference to the question you posted a few days ago about the following sample data? If so, convert the ASCII representation of the hex data to binary as you receive it, then store that in a byte array. With a length of 80540 bytes of received data, that should reduce to around 13.5K of data, which will fit in the 32K of memory. Would help if you could give some specifications of the eInk display so we know what size the image should be.

Arduino GET request parsing large data

david_2018:
Is this question in reference to the question you posted a few days ago about the following sample data? If so, convert the ASCII representation of the hex data to binary as you receive it, then store that in a byte array. With a length of 80540 bytes of received data, that should reduce to around 13.5K of data, which will fit in the 32K of memory. Would help if you could give some specifications of the eInk display so we know what size the image should be.

Arduino GET request parsing large data

Yes, I am referring to the same question. The specs of the EInk can be found here: https://www.waveshare.com/wiki/4.2inch_e-Paper_Module