esp_http_client发送文件求助

hexianren
Posts: 2
Joined: Sat Jan 27, 2024 9:27 am

esp_http_client发送文件求助

Postby hexianren » Sun Jan 28, 2024 10:04 pm

您和,我准备使用ESP32-S3开发板http post请求发送SD卡上的大文件,但是使用esp_http_client_set_post_field的buffer太小,内存不能一次性申请太大,请问如何循环边读取文件边分块发送文件呢?
esp_http_client_set_method(client, HTTP_METHOD_POST);
esp_http_client_set_header(client, "Content-Type", "multipart/form-data; boundary=" "----WebKitFormBoundary7MA4YWxkTrZu0gW");
esp_http_client_set_post_field(client, buffer, strlen(buffer));

Who is online

Users browsing this forum: No registered users and 159 guests