Solved

writing a file on network drive java less painful way

Posted on 2014-07-18
8
222 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
  • 5
  • 3
8 Comments
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
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
Comment Utility
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
Comment Utility
Yes, there should be no problem unless authentication is necessary. It would reduce complexity if you mapped the network drive first
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
:)
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 12

Author Comment

by:jazzIIIlove
Comment Utility
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
Comment Utility
Did you map the network drive as i suggested?
0
 
LVL 12

Author Comment

by:jazzIIIlove
Comment Utility
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
Comment Utility
As i said, map the network drive first. Easy to google
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
sumHeights  challenge 17 60
mergeTwo  challenge 13 71
powerN  challenge 3 47
compre toata in where clue oracle 4 41
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now