File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic

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

 
Rohan Kayan
Ranch Hand
Posts: 123
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
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 ..............
 
Jonathan Steel
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
You will probably need to make a server side application that communicates with your program. For more information goto:
web page
 
Chetan Bengaluru
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
I couldn't figure out anything from the page mentioned.Can somebody help please.
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
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?
 
Chetan Bengaluru
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
This topic is crossposted to the Sockets and Internet Protocols forum. I'm going to lock this copy.
 
    Bookmark Topic Watch Topic
  • New Topic