How to preview local images in HTML #13854
Unanswered
Sparkel-wsl
asked this question in
Q&A
Replies: 1 comment
-
Use tauri's asset protocol via https://v2.tauri.app/reference/javascript/api/namespacecore/#convertfilesrc |
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.
-
I wrote a desktop program using rust+tauri+Vue. During the program's operation, some images are generated, and these images are placed in the image folder under the src-tauri directory. How can we make the img tag directly access these images?
Beta Was this translation helpful? Give feedback.
All reactions