Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

network dissconnection while copy file data in database

 
Anuranjan Arya
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 9257
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic