This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 8843
    
    7

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]
 
Don't get me started about those stupid light bulbs.
 
subject: network dissconnection while copy file data in database
 
Similar Threads
Two network cards on linux
about networking
NX Contractor - startup mode
network dissconnection while copy file data in database
Help understanding what is written to configuration file and who writes what.