473,406 Members | 2,745 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,406 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 10898
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.