Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Establishing network connection  RSS feed

 
andy iott
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have written an app that saves a file on another host computer.I am currently achieving this by mapping a drive for the host computer and then saving file using an output stream and passing in URL:

OutputStream out = new FileOutputStream("Z:\\SHIPPERS\\"+shipNo+".gif");

z: = mapped host computer

The problem is if the the windows does not connect the drive (for whatever reason)....IOException!

I am looking for a way for the app to connect directly to host computer.

Any insight would be greatly appreciated.

Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!