File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes File Transfer Over the Network Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "File Transfer Over the Network" Watch "File Transfer Over the Network" New topic
Author

File Transfer Over the Network

john price
Ranch Hand

Joined: Feb 24, 2011
Posts: 495

To transfer files over a local network, would a good way to convert to bytes (1024), then send across the network? I'm building a professional file transfer program for a company with certain "file permissions" on the server. Only certain users can access certain directories. I haven't started yet, but the paperwork is being approved now. I just need to know if I am taking a bad approach. I was thinking of creating a login. Certain people have certain permissions, as deemed by the moderators on the server. I have made a basic home-made FTP program (self-made, no external libraries, etc). I have experience with Java networking programming, but haven't made an advanced FTP server yet. Here's what I got so far (pseudo code for the server) :


Thanks,
John Price

PS : I might not be on for a week or so as my computer screen is broken (being fixed within a week). Sorry if I don't respond for a few days.


“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” (Mosher's Law of Software Engineering)
“If debugging is the process of removing bugs, then programming must be the process of putting them in.” (Edsger Dijkstra)
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: File Transfer Over the Network
 
Similar Threads
problem with DataInputStream
FTP(File transfer)
Need Server to know name of Transfering File
Socket answer in multiple parts, Client receive only 1
Check ftp download files finish