Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reconnecting to server.  RSS feed

 
kotesh rao
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear friends,

My project is client-server architecture.
client is java swings application and server web apps (Tomcat).
From my swings application i am uploading a file to server using http url connection.
It happens that sometime client loose internet connection while upload the file(half way).

Now my question is how can i re-send the rest of the file content.

If suppose 100 bytes are transferred then i want to send from 101 bytes to end of the file.

Any idea how to implement this..using http connection.


Kind Regards,
Kotesh.
 
stan ioffe
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think you can resend the "rest of the file".
If the connection keeps breaking, maybe it's possible for you to break up the file into smaller pieces, then recombine them into a bigger file on the other end.
-stan
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!