Image download which protocol to be considered HTTp vs FTp

I have a question regarding the Http and FTP. I have already wrote the utility to download the image file from the Server(images are stored on these servers) using FTP protocol. The utility class is getting invoked from the Spring mvc controller. The utility is working fine but is usage of FTP protocol correct in the case or should I rewrite the utility and use the HTTP protocol image downloading? Which protocol will be faster in this case?


There is not particular difference in terms of extra informations passed using HTTP or FTP protocol.

So the choice between the two protocols is not depending on performances.

If you are writing a client you can't decide. You need to use the same protocol of your server (that can be an HTTP server like Apache or an FTP server).

If you are writing a server ask yourself if the clients will be more confortable with HTTP or FTP protocol. If you are developing a web application probably the best will be the HTTP protocol.

链接地址: http://www.djcxy.com/p/61368.html

上一篇: 有效估算大型列表中唯一元素的数量

下一篇: 图像下载哪个协议被认为是HTTp vs FTp