Replies: 1 comment
-
Can you share an svg base64 here ? Or runnable code you use to generate it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Is it possible to read and display svg image from buffer?
I'd like to generatate some images (qr codes for example) and I really don't want to save them as a regular file on disk. With TkInter etc I could simply add them to
BytesIO()
and pass it to appropriate widget. I couldn't reproduce it with Flet though.The best result so far was with PNG, where I could b64encode the contents and buffer and use it with
src_base64
parameter.Is there a way to avoid that and pass the genereted image directly? Can you make it work with SVG?
Code sample
Error message
No response
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions