关于在网站中使用图片外链产生的问题_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:58:43
Original
1471 people have browsed it

我在网站中定义了外链的图片,那么当客户端访问我的网站的时候,这些外链的图片是首先下载到服务器然后传送给客户端,还是直接由客户端去外链网站里下载下来的?


回复讨论(解决方案)

直接由客户端去外链网站里下载下来的

搞这么麻烦干啥,直接下.用户能看到就行了

1、客户直接就能访问外链的话,就不用处理;
2、如果无法访问外链,就需要你下载下来,然后返回给用户;
第二种情况,就可以写个用户控件,把图片地址作为参数传给用户控件,下载,然后返回给用户内网图片;

谢谢以上各位,最近实在忙没时间来回帖,现在结贴。分数有限大家不要介意T T

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!