Dynamically load image
Posted: Tue Aug 08, 2023 4:07 am
Hello,
the image data I get from the api is as follows:
The image server is at http://localhost:3000.
The image download address is obtained by combining the address of the image server and the image url.
Finally, I need to display this image in my report. How do I do that? Thanks.
the image data I get from the api is as follows:
Code: Select all
{
"url": "/upload/20230425151810.jpg"
}
The image download address is obtained by combining the address of the image server and the image url.
Code: Select all
http://localhost:3000/upload/20230425151810.jpg