如何获取图像的URL [英] HOW TO GET THE URL FOR IMAGE

查看:107
本文介绍了如何获取图像的URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我的桌面上有图像,我想用FTP上传图片。

我想要的使用url查看图像不下载图像。

请帮我解决这个问题。

解决方案

查看实际意味着无论你做什么,下载然后查看。最终,您需要图像数据,而不是URL本身(您只需要它就可以下载数据)。



请参阅我对该问题的评论。如果您不知道该URL,您可以先下载包含该图片的页面,然后解析它以找到< img ...> (或链接到图片,无论如何它是,使用一些标准,选择您需要的图像,将其下载(使用单独的HTTP请求)在内存中,存在于您的表单上。请查看我过去的答案:

获取具体信息来自网页的数据 [ ^ ],

如何从其他网站获取数据 [ ^ ]。



-SA

HI,

I HAVE A IMAGE IN MY DESKTOP AND I WANT TO UPLOAD THE IMAGE TO WEB USING FTP.
I want to view the image using url not to download the image.
please help me to sort this out.

解决方案

"View" actually means "download and then view", no matter what you do. Ultimately, you need the image data, not the URL itself (you only need it to be able to download the data).

Please see my comment to the question. If you don't know the URL, you can download the page with the image first, parse it to find <img …> (or link to the image, whatever it is), using some criteria, choose the image you need, download it (with the separate HTTP request) in memory, present on your form. Please see my past answers:
get specific data from web page[^],
How to get the data from another site[^].

—SA


这篇关于如何获取图像的URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆