Help! Downloading a file from remote Server
I am currently doing a program for downloading a specified file from the remote server i.e from any website. If the downloading process stops in between due to some problem in the internet connection, then my program needs to start the downloading the file again to the local directory from where it was left.
My idea is that, getting the size of the remote file initially when the downloading process starts and if the connection is interrupted, i will check the size of the downloaded file in the local directory with the remote file size. If the remote file size is greater than the localfile size, i need to start downloading the file where it was left i.e start downloading the next bit from the remote file.
Is there any way to get the contents of the remote file from the specified point say 50th byte from a total file size of 100 kb using java?
which concept to useFtpClient or sockets?
iam a little bit confused!!!!
Please help me.
Thanks in advance.

