Solved

writing a file on network drive java less painful way

Posted on 2014-07-18
8
320 Views
Last Modified: 2014-07-21
I need to write a file to a network drive with Java. \\vsv11234\site$\Foo\Baz

Any help?` Strinctly without a 3rd party library.

Regards.
0
Comment
Question by:jazzIIIlove
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 40205705
The niceties are with the OS. To Java, it's just another file. If that's not the case, then you haven't set it up properly
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 40206550
Yes, you are right but do you think xml can be serialized to a network drive with Result object without using 3rd party library?
http://docs.oracle.com/javase/7/docs/api/javax/xml/transform/Result.html

Regards
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 40206611
Yes, there should be no problem unless authentication is necessary. It would reduce complexity if you mapped the network drive first
0
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 
LVL 86

Expert Comment

by:CEHJ
ID: 40206997
:)
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 40207197
There was actually a problem even i created the folder in public folder setup. It simply couldn't create it.. Any sample codes?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 40207224
Did you map the network drive as i suggested?
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 40208808
Hi,

I didn't map the network drive. Is \\server\directory working just by specifying the path?

Br.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 40208910
As i said, map the network drive first. Easy to google
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
The viewer will learn how to implement Singleton Design Pattern in Java.

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question