Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Tcp 将图像文件从esp8266发布到数据库_Tcp_Esp8266_Arduino Esp8266 - Fatal编程技术网

Tcp 将图像文件从esp8266发布到数据库

Tcp 将图像文件从esp8266发布到数据库,tcp,esp8266,arduino-esp8266,Tcp,Esp8266,Arduino Esp8266,我想发布大小约为15Kb的图像文件,将基于esp8266的原型形成一个非sql数据库。我可以发布大小小于1Kb的json文件,但如果大小大于1460字节,http post将失败 HTTPClient http; if( http.begin(myurl) ){ delay(1000); char *auth = authString; http.setAuthorization(auth); http.addHeader("Content-Type","applica

我想发布大小约为15Kb的图像文件,将基于esp8266的原型形成一个非sql数据库。我可以发布大小小于1Kb的json文件,但如果大小大于1460字节,http post将失败

HTTPClient http;
if( http.begin(myurl) ){
   delay(1000);
   char *auth = authString;
   http.setAuthorization(auth);

   http.addHeader("Content-Type","application/json",  false, true);
   int err = http.POST(largedata);
   Serial1.print("HTTP Post reutrns : ");Serial1.println(err);
}

内存不足。移除未使用的组件。如果你有/可以把数据放到SPIFFS中,可能会有一个上传流接口。。SPIFFS是一个很好的特性。但我正在寻找一个很好的答案。可能我需要post,因为“多部分/表单数据”数据是ESP8266 arduino固件上的文件系统,这怎么不是IoT?