Hello
I'm sending Image byte data to server.
String payload is like
value=255,216,255,224,0,16,74,70,73,70,0,1,1,1,0,0,0,0,0,0,255,219,0,67,0,12,8,9,11,9,8,12,11,10,11,14,13,12,14,18,30,20,18,17,17,18,37,26,2
HTTPClient httpClient;
httpClient.begin(targetUrl);
httpClient.addHeader("Content-Type","application/x-www-form-urlencoded");
int httpCode = httpClient.POST(payload);
Serial.println("httpcode");
Serial.println(httpCode);
httpClient.end();
but httpCode is always -1
and I checked server's logs. It didn't reach.
below is node js server that image should arrive.
app.post('/pic',function(request,response){
}