Re: ftp in java
- From: Arne Vajhøj <arne@xxxxxxxxxx>
- Date: Sun, 10 Aug 2008 18:47:27 -0400
Christian wrote:
Mike Schilling schrieb:Knute Johnson wrote:In what sense is it optimized?micro wrote:is there a better protocol to upload files to server than FTP andFTP is an existing protocol. There are FTP servers and clients
supported by java?
thanks alot to all of you
available for every platform.
Transferring files is just a matter of copying bytes from one place to
another. I've written numerous programs to do that with Java. The
real question is what are you really trying to do? If you want to
send files to existing FTP servers then and FTP client would be the
tool to use. If you have a Java program and need to send files
between two locations, you can just make a connection and send the
bytes. It isn't that complicated. I wouldn't recreate what exists
and I wouldn't hesitate to write something simple to transfer files
around.
FTP is highly optimized. If you're sending large files and performance is important, it makes more sense to use FTP than to roll your own file-transfer protocol, in Java or any other language.
The Big problem is that FTP has no verification for files.
After transferring a file you never know if it has been transferred without errors ... no hashing not even a stupid crc-check is done
imho FTP should die as soon as possible.
Its a danger to any files integrity.
HTTP is no different.
That type of check are usually done at a higher level than basic
file transfer.
Like first transferring both real file and checksum file, so the
real file can be verified.
Besides lots of files are transferred as ZIP files and then
ZIP provides CRC check.
Arne
.
- Follow-Ups:
- Re: ftp in java
- From: Tom Anderson
- Re: ftp in java
- References:
- ftp in java
- From: micro
- Re: ftp in java
- From: Roedy Green
- Re: ftp in java
- From: Arne Vajhøj
- Re: ftp in java
- From: micro
- Re: ftp in java
- From: Knute Johnson
- Re: ftp in java
- From: Mike Schilling
- Re: ftp in java
- From: Christian
- ftp in java
- Prev by Date: Re: Subclasses and the equals method
- Next by Date: Re: ftp in java
- Previous by thread: Re: ftp in java
- Next by thread: Re: ftp in java
- Index(es):
Relevant Pages
|