New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lazy value serialization #1804
Comments
Hi @mirecta, I expect to add a similar feature in the future but not right now. This feature should not be called "Incremental serializer" (#206, #210, #1690) and but "Lazy value serialization" (#1713). BTW, using JSON to store an image is extremely inefficient. Best regards, |
I am not store image but i want send it through , i must send it into home assitant , before i was use message pack, but home assistant not support it |
Hi for example i want send jpeg image from ESP32 camera (through for example MQTT) using Json, so i must encode jpeg data as base64. And its vaste of memory store jpeg in memory again even bigger because encoded as base64. So i patched ArduinoJson library to do it incrementaly
i created Abstract class DynamicData
writeJsonTo
write data for Json serializer using pointer to write funcwriteRawTo
write data for MessagePack serializer using pointer to write funcand then i for example create Base64 encoder inherited from Dynamic data and i use it
and after compile and run i got
so it works perfectelly.
Do you want patch ? It is usefull for others ?
it is in my fork ...
The text was updated successfully, but these errors were encountered: