Win a copy of Murach's Python Programming this week in the Jython/Python 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!