• Post Reply Bookmark Topic Watch Topic
  • New Topic

Establishing network connection  RSS feed

andy iott
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.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!