• Post Reply Bookmark Topic Watch Topic
  • New Topic

FTP or HTTP, Pros and Cons ?

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My desktop application needs a network function: upload file to server.

Then we have two sulutions :

1. use FTP, I need to implement apache commons.net
2. use HTTP, call a servlet to upload file.

What is Pro and Cons ?

Thanks.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd go with FTP. It has a richer API for handling files and directories in case you later need to do more elaborate things than just upload a file.

Also, you don't need anything on the server besides the FTP server; for HTTP, you have to write the servlet and its associated web app.
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Edward Chen wrote:
1. use FTP, I need to implement apache commons.net


As noted on our File Upload FAQ, it is possible to use core Java classes to perform basic FTP operations (upload, download).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!