I discovered that there is no limitation on cjson, and I have enough memory, but I could not figure out if encoded null terminated or not.
How can I do this?
Search found 7 matches
- Thu Jul 04, 2019 3:42 pm
- Forum: General Discussion
- Topic: Missing line in cJSON
- Replies: 3
- Views: 3607
- Wed Jun 26, 2019 4:28 pm
- Forum: General Discussion
- Topic: Missing line in cJSON
- Replies: 3
- Views: 3607
Re: Missing line in cJSON
I ended up updating the first post because of some changes in the programming, now I need to see how to put an unsigned char* in json
- Mon Jun 24, 2019 6:16 pm
- Forum: General Discussion
- Topic: Missing line in cJSON
- Replies: 3
- Views: 3607
Missing line in cJSON
I'm converting an image to base 64 and every time I try to print in json, the json line simply disappears. Convert image code camera_fb_t *pic = NULL; pic = esp_camera_fb_get(); size_t output_length; // note *NOT* a pointer unsigned char *encoded= base64_encode((const unsigned char *)pic->buf, pic->...
- Tue Jun 11, 2019 9:11 pm
- Forum: General Discussion
- Topic: Problems using ESP-EYE and base64
- Replies: 6
- Views: 6084
Re: Problems using ESP-EYE and base64
It's working, I've modified the memory release and data output. now it's working 100% Thank you for your help! #include "app_camera.h" #include "app_wifi.h" #include "app_httpd.h" #include "esp_timer.h" #include "img_converters.h" #include "fb_gfx.h" #include "sdkconfig.h" #include "esp_log.h" #incl...
- Mon Jun 10, 2019 6:55 pm
- Forum: General Discussion
- Topic: Problems using ESP-EYE and base64
- Replies: 6
- Views: 6084
Re: Problems using ESP-EYE and base64
-The base64_encode wants to see the number of bytes the data has -I guess that is the number of bytes of the photo taken by the camera -The number of bytes converted to char -Returns the length of the string -The length of the char variable -I still do not know To be easier to understand my problem,...
- Thu Jun 06, 2019 8:04 pm
- Forum: General Discussion
- Topic: Problems using ESP-EYE and base64
- Replies: 6
- Views: 6084
Re: Problems using ESP-EYE and base64
This is the problem, I can not understand what to put there, I need help from someone who has more understanding about it.
- Wed Jun 05, 2019 10:00 pm
- Forum: General Discussion
- Topic: Problems using ESP-EYE and base64
- Replies: 6
- Views: 6084
Problems using ESP-EYE and base64
So, I'm doing a project and I need to turn an image into base64, but I do not know how to continue from here. I managed to make it work with text, but I could not with image. I'm using the esp-eye and the crypto / base64.h file. camera_fb_t * pic = NULL; pic = esp_camera_fb_get(); size_t pic_len; pi...