Need to download image from node.js server and store in spiffs file

karunt
Posts: 76
Joined: Sat Apr 03, 2021 7:58 am

Need to download image from node.js server and store in spiffs file

Postby karunt » Thu Apr 15, 2021 8:33 am

I'm new to ESP32 and am trying to get an image file from a node.js server via a http get request (as coded in the esp_http_client example under esp-idf/examples/protocols/). I'm able to successfully get a text response from the node.js server and save it to a spiffs file. But when it comes to receiving images, the buffer in the esp_http_client example doesn't read any data pertaining to the png or jpeg file. I've tried to transmit the file data in Base64 and utf8 formats, but no luck. Even tried to increase the buffer memory from 512 to 2048 in esp_http_client.h, but still no luck. Can someone please guide me on how to go about successfully receiving image data from node.js server and saving it in a spiffs file?

Who is online

Users browsing this forum: HighVoltage, homedad and 124 guests