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

Copying File from Client To Server  RSS feed

 
Joe Fisher
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
What is the preferred way to copy a file from the Client to the Server ?
Thanks
 
jason adam
Chicken Farmer ()
Ranch Hand
Posts: 1932
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would think using RMI with a byte Stream would be a good way to go.
File class is Serializable, so no worries with passing it as a parameter, and you're only worried about copying the bytes, so Stream would do better than a Writer.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!