wood burning stoves*
The moose likes I/O and Streams and the fly likes How to create a file on a machine connected through local network??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Reply locked New topic
Author

How to create a file on a machine connected through local network???

Rohan Kayan
Ranch Hand

Joined: Sep 17, 2004
Posts: 123
I want to create a file on a machine connected through local network from java program . How can i do this ?? Please help me out ..............


SCWCD 1.4, SCJP 1.4
Jonathan Steel
Greenhorn

Joined: Jan 26, 2005
Posts: 13
You will probably need to make a server side application that communicates with your program. For more information goto:
web page
Chetan Bengaluru
Greenhorn

Joined: Feb 15, 2005
Posts: 9
I couldn't figure out anything from the page mentioned.Can somebody help please.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8877
    
    8

Welcome to the JavaRanch, Chetan. You are going to have to give us some more information so we can help you. Exactly what are you trying to accomplish? What are you having problems with?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Chetan Bengaluru
Greenhorn

Joined: Feb 15, 2005
Posts: 9
Originally posted by Joe Ess:
Welcome to the JavaRanch, Chetan. You are going to have to give us some more information so we can help you. Exactly what are you trying to accomplish? What are you having problems with?


Hi Joe,

The scenario is as follows.
#1) After logging in 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
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8877
    
    8

This topic is crossposted to the Sockets and Internet Protocols forum. I'm going to lock this copy.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create a file on a machine connected through local network???