Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
    Bookmark Topic Watch Topic
  • New Topic

transfer files

 
shen zhang
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi

anyone can advise how to transfer more than one files at the same time? thank you!
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
Using which protocol? Or are you creating your own protocol using a raw socket?
 
shen zhang
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Report post to moderator
Ulf Dittmer wrote:Using which protocol? Or are you creating your own protocol using a raw socket?


server and client socket, i saw someone saying using dataoutputstream, not sure where i can put in my code? thank you!
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
Does that mean you are creating your own protocol? Based on the difficulties many folks encountered who tried this (search these forums to find the related discussions), I advise to archive and compress the files into a single file before transmission. That will make your task much easier. Java has all the required algorithms built in (like jar, zip or gzip).
 
Joe Ess
Bartender
Posts: 9362
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once. It causes confusion and duplication of effort as the community tries to help everyone.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!