gogogaga
gogogaga

Reputation: 305

Difference between ftp and uploading file by using input/output streams

I am trying to write a file uploader in java. It's requirements are to get the file from a user and save the file on the server. This file should be later downlaod-able.

I came across this link from java which simply reads the contents of the file as input stream and write it at the specified location on the server to a new file as output stream.

1) My question is, what is this method of file uploading/transferring called?

2) How is it different from the FTP protocol?

Upvotes: 0

Views: 285

Answers (1)

Kayaman
Kayaman

Reputation: 73568

It's HTTP upload, using Java EE and a servlet to handle the receiving of the file.

It's a different protocol. FTP requires an FTP server and HTTP file upload requires a HTTP server with something on the backend to handle the data coming in.

Upvotes: 3

Related Questions