in my project I am collecting data and saving them to an external flash memory in a raw format. Currently to retrieve the data I take the flash chip away and read it via Arduino. I would like to add ESP8266 to have access to the data wirelessly. I managed to configure the ESP8266 as a web server, sending hello word via server.send() command (in Arduino IDE) when accessed on WLAN. But this way I need to have the whole data prepared (in RAM?) at time of executing the send() command. I would like to send the web page in chunks - only a header, than read first page of the external flash, preprocess it to a better readable form and send it to the client and repeat until whole flash is read. How can I do this?
Thanks