I need to download a binary file to the SDCard. I'm using MQTT so my thought is to pull it via and MQTT SUBSCRIBE and write it into a byte array. My understanding is that byte arrays can't be larger than 56,000 bytes. This file may be larger than that - is my only option to create multiple byte arrays and then count received bits to push them into multiple byte arrays?
I was hoping there was a more elegant solution - does anyone have any better ideas about how to receive larger binary files so that they can be written to an SDCard file?
Thanks, Andrew.