Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Make a file from bunch of files and then retrieve  RSS feed

 
Ronak Patel
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to make one file from bunch of different king of file(.doc,txt,pdf,jpeg) and after from that file i wanted to retrieve all file again.
So what should i need to do?Any special things need to remember?
could u help me regarding that?
Thanks.
 
Adrian Yan
Ranch Hand
Posts: 688
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you basically want to perform a tar (unix command)? If so, I think is a tar java library that can do that. Better yet, why not just zip them using java.
 
Ronak Patel
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basicaly i want to load bunch of files from local machine to server machine.I want to transfer them in just one request so my applet allow user to select different files from their hard drive and then i just write all byte of all files in one file (e.c outwrite.bin)using "-------Ronak------------" seperator.(any kind of seperator)
This is my basic functionality whis i did it.
Now how can i get back that all files and make a individual file using that outWrite.bin. on server.
some of files are already ziped so i don't want to zip them again.
Thanks.
 
Adrian Yan
Ranch Hand
Posts: 688
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you doing this via web? You might get a better response in JSP/Servlet page. If you do it thru java client/server, it really doesn't matter because you prolly opens only one connection to the server and write to the socket. There is no concept of files thru TCP protocol, only packets.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!