Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

How to transfer a bunch of files over internet

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to write a course project of backup/restore. Could you tell me it is efficient to use RMI to transfer the file from local machine to the remote machine? Could you give me any clue how to transfer file using RMI?
Thanks a lot
 
High Plains Drifter
Posts: 7289
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Strictly speaking, RMI doesn't do file transfer. It serializes VM objects. And I would guess it's not terribly efficient to turn a file into an object just so you could pass it through RMI.
Is this an option in your project, or must you do it this way?
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
What would you sugest to use for file transfer? I'm needing to transfer large files over the network at a small speed...
Possible situation:
several 5MB files over a 56Kbps line
Thank you,
Pedro Maia
 
Michael Ernest
High Plains Drifter
Posts: 7289
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
An ftp or sftp program will suit your needs.
If your realy issue is performance, your problem isn't the right program or the right programming language: it's the bandwidth you have available.
There's nothing mysterious about transfer speed. Take your load size (e.g., 5 MB) and your network bandwidth (56 kpbs), and divide the former by the latter to get the best possible transfer time you could ever achieve. Then plan on getting about 70% of that, on a good day. That's all there is to it.
You can try compressing your data to create a smaller load, but if your files already exist in a binarized form you won't win significant savings. But that's it: smaller files, greater bandwidth. There's no silver bullet.
 
reply
    Bookmark Topic Watch Topic
  • New Topic