how to copy a file from one machine to another using beans?

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2005
Posts: 10
Reputation: vps is an unknown quantity at this point 
Solved Threads: 0
vps vps is offline Offline
Newbie Poster

how to copy a file from one machine to another using beans?

 
0
  #1
Sep 1st, 2005
hi

everybody i am stuck.
i am first time using beans.
can anybody please tell me how a file can be copied from one machine to another machine usingg beans.
i dont want to use servlets or JSP.

regards
vps
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 216
Reputation: hooknc is an unknown quantity at this point 
Solved Threads: 8
hooknc hooknc is offline Offline
Posting Whiz in Training

Re: how to copy a file from one machine to another using beans?

 
0
  #2
Sep 1st, 2005
Well, there are several ways of doing it. But here is the way I would try first.

If the file you're looking for isn't behind a firewall or anything you should be able to use the File class with a Url class and then copy the file to your local machine.

Regards,

Nate
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: how to copy a file from one machine to another using beans?

 
0
  #3
Sep 2nd, 2005
Beans? Why the demand to use beans? Any specific things you should do using the bean?
Do you even know what a bean is?

You can't copy a file to another machine without some sort of access to that machine. That means either an open ftp or http connection that allows upload, a shared drive with your machine, or another type of program running there that does the actual writing.
If you don't have that, tough luck on you.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 10
Reputation: vps is an unknown quantity at this point 
Solved Threads: 0
vps vps is offline Offline
Newbie Poster

Re: how to copy a file from one machine to another using beans?

 
0
  #4
Sep 2nd, 2005
hello

how should i use bean for it

regards
vps
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 10
Reputation: vps is an unknown quantity at this point 
Solved Threads: 0
vps vps is offline Offline
Newbie Poster

Re: how to copy a file from one machine to another using beans?

 
0
  #5
Sep 2nd, 2005
I am sorry,i am mistaken
it is the bean logic i have to use ,
i have to write my own get and set methods for copying
the file on another machine.

regards
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 609
Reputation: freesoft_2000 is an unknown quantity at this point 
Solved Threads: 8
freesoft_2000 freesoft_2000 is offline Offline
Practically a Master Poster

Re: how to copy a file from one machine to another using beans?

 
0
  #6
Sep 4th, 2005
Hi everyone,

Originally Posted by vps
I am sorry,i am mistaken
it is the bean logic i have to use ,
i have to write my own get and set methods for copying
the file on another machine.

regards
Are you trying to download a file to another machine via the internet?

Is that what you mean?

Richard West
*****************************************************
Microsoft uses "One World, One Web, One Program" as a slogan.
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond

Tell me what type of software do you like and what would you pay for it

http://www.daniweb.com/techtalkforums/thread19660.html
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: how to copy a file from one machine to another using beans?

 
0
  #7
Sep 4th, 2005
Upload you mean?

Yes, it seems that's what he wants to do but he doesn't mention the protocol he's trying to use or what infrastructure is available on the remote machine (there has to be something... You're not going to write to a remote machine without a service there to do the actual writing for you).
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 4998 | Replies: 6
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC