Skip to content

How to load local image? #1538

Answered by yzqdev
yupoog asked this question in Q&A
Jul 7, 2022 · 3 comments · 3 replies
Discussion options

You must be logged in to vote

You could use a static file server in background to hold these images.

app.Static("/img", "d:\\Downloads")

Then use something like <img src='http://localhost:3000/img/1.jpg' />

or you can just move 1.jpg to you frontend assets folder and use <img src='@/assests/1.jpg' /> to hold a image

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@yupoog
Comment options

@leaanthony
Comment options

Answer selected by yupoog
Comment options

You must be logged in to vote
1 reply
@leaanthony
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants