Read SD card Data in Chunks and Posting to Web Server using Http Request

Hello everyone,

Could you please help me out in sharing a piece of code for reading SD card data in chunks and then posting that particular block of chunk data to web server using HTTP request.

Help in this regard would be appreciated!

Cheers
Akash Gupta

Could you please help me out in sharing a piece of code for reading SD card data in chunks

The read() method is overloaded, to take an array and a size.

char data[64];

   byte actualCount = someFileHandle.read(data, sizeof(data));

and then posting that particular block of chunk data to web server using HTTP request.

You'll need to put your hands in your pockets, and get someone else to type up what you want to do. All that hand-waving is useless.

IF you have the Arduino acting as a client, making a POST request, the amount of data to expect has to be sent before the data. The data, read from the SD card, can be sent in one chunk using

   client.print(data, actualCount);

The value in actualCount will be 64 or less, depending on how much data was still in the file.