简体   繁体   English

如何使用来自后端服务器的图像?

[英]How can I use images from backend server?

I try to diplay an Image which is stored on the backend server.我尝试显示存储在后端服务器上的图像。

When I use an URL from another site it works.当我使用来自另一个站点的 URL 时,它可以工作。

<img src="https://www.qries.com/images/banner_logo.png">

But this does not work.但这不起作用。

<img src="127.0.0.1/files/94632-test.png"/>

Can someone help me?有人能帮我吗?

Thanks deceze!谢谢你!

It worked with adding the protocol.它与添加协议一起工作。

<img src="http://127.0.0.1/files/94632-test.png"/>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将本地/服务器目录中的所有图像添加到数组,并在另一个文件上使用数组var? - How can i add all images from a local/server directory to array and use the array var on another file? 如何从后端服务器获取mapbox访问令牌,而不是在模块导入语句中对其进行硬编码? - How can I get a mapbox access token from a backend server instead of hardcoding it in the module import statement? 如何将错误消息从服务器后端传递到 vue 前端 - How can I pass an error message from the server backend to vue frontend 如何从Angular HTTP Post向Nodejs后端发送多个参数以在OracleDB查询中使用? - How can I send multiple parameters from Angular HTTP Post to Nodejs backend to use in OracleDB query? 我可以在前端使用后端的OAuth令牌吗? - Can I use an OAuth token from backend in my frontend? 如何停止图像的缓存-或者-如何检查服务器上是否存在文件? - How can I stop images from being cached -OR- how can I check that a file exists on the server? 如何使用Bootstrap Toggle处理后端更改状态? - How can I use Bootstrap Toggle to process backend change state? 如何在JQuery中使用$(this)为这些图像设置动画? - How can I use $(this) in JQuery to animate these images? 如何将唯一标识符从我的 express 后端服务器传递到我的前端 reactjs 以显示在我的 web 应用程序中? - How can I pass a unique identifier from my express backend server to my frontend reactjs to be displayed in my web application? 如何修改Angular组件以从后端获取信息? - How can I modify Angular component to get information from backend?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM