从FTP检索图像到网页 [英] Retrieve image from FTP to webpage
本文介绍了从FTP检索图像到网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的ftp服务器中有一个包含多个图像的文件夹。我尝试访问并在网页中显示这些图片,如
I have a folder in my ftp server which contains several images. I'm trying to access and show these images in a webpage like
<img src="ftp://my_ftp_ip_address/Images/imagename.jpg"/>
但它要求输入一个ftp用户名和密码。我怎样才能做到这一点?也有可能使用java做同样的事情吗?
But it asks for an ftp username and password. How can I achieve this? Also is it possible to do the same using java?
推荐答案
您可以尝试修改您的src属性,如下所示:
You can try to modify your src attribute like this:
<img src="ftp://username:password@my_ftp_ip_address/Images/imagename.jpg"/>
这篇关于从FTP检索图像到网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文