wood burning stoves 2.0*
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
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
Author

to write a file on a machine on the network.

Chetan Bengaluru
Greenhorn

Joined: Feb 15, 2005
Posts: 9
Hi,

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
Chetan
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
Greenhorn

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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: to write a file on a machine on the network.
 
Similar Threads
Out of memory error
NX: A confusion about specifying the location of the database file
difference between applet & application.
How to create a file on a machine connected through local network???
writing a file onto a client from a web application