Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File Transferring using objectOutput/input Stream

 
Moazam Nabi Shaikh
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am making a software, in which i have put one facililty that user may download or share files. i want to do this by using objectoutput stream and input stream. i want to know your ideas or suggestion that how should i implement that.
Thanks
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't do that. Object-Streams are for exchanging Java objects -- they basically define a file format for storing in-memory data. The things you're talking about already have a file format -- they're files. Hence, just read and write them with FileInputStream/FileOutputStream.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic