aspose file tools*
The moose likes I/O and Streams and the fly likes network dissconnection while copy file data in database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "network dissconnection while copy file data in database" Watch "network dissconnection while copy file data in database" New topic
Author

network dissconnection while copy file data in database

Anuranjan Arya
Greenhorn

Joined: Jun 10, 2009
Posts: 17
HI,

I want to copy a file from FTP server and later i want to copy the content of the file in the database which is there on another server.
During these processes if there is any kind of network failure HOW can i find out and handle these kind of situations?


Need advice.

thanks you
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
Assuming you're doing this with Java code somehow, there should be an exception thrown in such cases - which you can catch and recover from.
Anuranjan Arya
Greenhorn

Joined: Jun 10, 2009
Posts: 17
If I am copying a file from FTP server and then in between network got disconnected
do i have to delete the file which is partially copied in the local system and again start my coping process,
Or is there any alternate way of continue the copping process from where it last ended.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8866
    
    8

FTP has a command, REST, which resumes a transfer from a given point.
Both your server and your client api has to support the command, of course.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: network dissconnection while copy file data in database