aspose file tools*
The moose likes Java in General and the fly likes to write a file on a machine on the network. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "to write a file on a machine on the network." Watch "to write a file on a machine on the network." New topic

to write a file on a machine on the network.

Chetan Bengaluru

Joined: Feb 15, 2005
Posts: 9

The scenario is as follows.
#1) After logging in to the web appln the user edits/creates a profile.
#2) This info is then fed into a Stored procedure which returns a ref cursor.
#3)A resultset is obtained from the cursor and then i iterate through the resultset.The contents fetched from the resultset(String) should then be written onto the directory specified by the user in step 1 on the user's machine.

Can you please suggest a way out for this.I have no clue as to how i get a handle to the user's machine even if I am equipped with his host information.I can write into a file on the server itself but i am lost when it comes to writing into a file on another machine on the same network.
I have the host info from the request object.

Thanks & Regards
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
Please don't post the same question to multiple threads. You're up to three forums (mods: I/O and Sockets are the other two) for this post, and that tends to make people less likely to help you. It also makes the discussion hard to follow.
[ February 17, 2005: Message edited by: David Harkness ]
Trevor Whitehead

Joined: Oct 16, 2002
Posts: 16
what is the purpose of putting the info on the clients machine directly why not give them the option to download?
Consider Paul's rocket mass heater.
subject: to write a file on a machine on the network.