Replies: 1 comment
-
Hi, I'm far from being knowledgeable with dioxus, but to convert an image (as in an array of bytes) to a "src" (a string), you could try this : cargo.toml :
and the code :
Let's call the resulting string
You may also want to have a look at : |
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.
-
Hello, I'm new to Dioxus (new to frontend in general) and I'm building a music player app.
The user will provide the path to a folder with the assets (audio files and album art) and I want a way to display them at runtime. I looked at the dynamic assets example, but that didn't work for me. I read a discussion in which people said you can base64 encode the image and use that as a url but after poking around I couldn't make that work.
I would appreciate any guidance on this issue.
Beta Was this translation helpful? Give feedback.
All reactions