473,378 Members | 1,555 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

code to transfer files from one computer to another

3
hello everybody..

can anyone post the code for transferring files from one machine to another in java.. plz.... its urgent...
Nov 1 '07 #1
10 10896
r035198x
13,262 8TB
hello everybody..

can anyone post the code for transferring files from one machine to another in java.. plz.... its urgent...
Double posting is not only confusing to people trying to follow your problem, it is also illegal (against site rules).
Now, no one is going to write this code for you and dump it on you on a silver plate as explained here. We are however willing to help you write the program yourself if you show that you are doing something on it yourself.
Nov 1 '07 #2
JosAH
11,448 Expert 8TB
hello everybody..

can anyone post the code for transferring files from one machine to another in java.. plz.... its urgent...
But there already is 'ftp'; it was made especially for this purpose and it is quite
good at it imho. Why do you want to reinvent the wheel? And why is it urgent?

kind regards,

Jos
Nov 1 '07 #3
dav3
94
perhaps it has to be a client server app?
Nov 1 '07 #4
gpbbdt
3
hello everybody,

First of all my sincere apology to ask for code which is against the rule of this site. As I am new to this forum i was not aware of the rules.

I am learning Java and I am doing the project on P2P file sharing networks. And I am finished with my GUI. I just want any good material which will guide me using FTP. So can anyone tell me any site or ebook which will give information on this??
Nov 2 '07 #5
JosAH
11,448 Expert 8TB
Just google for "Java ftp" and you'll find everything you need.

kind regards,

Jos
Nov 2 '07 #6
heat84
118 100+
There are many options for that , ftp works but seems there will be kinda a client -server architecture. You can try to look for ways of sharing files using null modem , the code will require you to have knowledge of opening comm ports and reading streams of data. Read more about the javax.comm package.
Nov 12 '07 #7
JosAH
11,448 Expert 8TB
There are many options for that , ftp works but seems there will be kinda a client -server architecture. You can try to look for ways of sharing files using null modem , the code will require you to have knowledge of opening comm ports and reading streams of data. Read more about the javax.comm package.
I'd rather not; it introduces another hurdle: serial communication using Java. Better
open a ServerSocket then and contact a server running on the localhost.

kind regards,

Jos
Nov 12 '07 #8
heat84
118 100+
I'd rather not; it introduces another hurdle: serial communication using Java. Better
open a ServerSocket then and contact a server running on the localhost.

kind regards,

Jos
Thats a good idea jos but if you open a server socket , it ceases to be peer to peer , seems he wants a peer to peer solution. Opening a server socket makes it client-server.

Regards heat84
Nov 13 '07 #9
perhaps it has to be a client server app?
how to transfer files from client to server
Feb 22 '08 #10
r035198x
13,262 8TB
how to transfer files from client to server
Have you tried any of the suggestions mentioned in this thread?
Feb 22 '08 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ali Gohar | last post by:
hi, I want to transfer image files from one computer to another through Sockets in the form of bytes. But after sending 10 to 12 Files there occur an Exception as Follows: ...
2
by: Mr Wizard | last post by:
I am going through the front controller http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpatterns/html/ImpFrontControllerInASP.asp and all works well except when the server.transfer...
6
by: Stan | last post by:
There are over 200 people using the intranent web site and only one computer has a very strange problem. The web page has a button. When the button is clicked, the form is posted back and...
4
by: Weston Weems | last post by:
I've got the simple problem where I'd like to transfer somewhat large files to my webserver via http/webservice/something like that. My question is what kinda limits have people been able to...
11
by: E.T. Grey | last post by:
Hi, I have an interesting problem. I have a (LARGE) set of historical data that I want to keep on a central server, as several separate files. I want a client process to be able to request the...
38
by: Tom | last post by:
I need my data generating C program on computer #1 to export small amounts of data (one - 40 byte data structure) periodically (once per minute) to a C program on computer #2. I am considering...
6
cjbrx3115
by: cjbrx3115 | last post by:
Hey everyone, I just bought a new Windows Vista (Home Premium) computer. My old computer, a Windows XP Professional, had all of my old documents, spreadsheets, etc. I was planing on using the Easy...
10
by: David | last post by:
I have googled to no avail on getting specifically what I'm looking for. I have found plenty of full blown apps that implement some type of file transfer but what I'm specifcally looking for is an...
0
by: spartak | last post by:
You need to transfer Your site from one hosting company to another. Whats a good program for this? Want to skip Your computer and transfer from ftp to ftp ? Here You can transfer files between...
2
yashg
by: yashg | last post by:
I am building a data backup application in C# using Sockets. It has a server component and a client component. The client is going to upload files to the server through TCP sockets. I've got all...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.