This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Read files from jboss data folder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Read files from jboss data folder" Watch "Read files from jboss data folder" New topic
Author

Read files from jboss data folder

Harsha Jay
Greenhorn

Joined: Sep 24, 2001
Posts: 8
I have some files in the data folder and I have a WS which is supposed to read this file and return binary response. Is it a good idea to use FileInputStream and read off the bytes and send back a SOAP response. I have got a early version working this way.

But was wondering if the proper way/design is to use getResourceAsStream using one of the ClassLoaders and I am concerned about multiple reads issues as well.

Appreciate your inputs or any other ideas!

Thanks,
Harsh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Read files from jboss data folder
 
Similar Threads
Reading excel files in folder by giving folder name as input
Access right on Data Folder
something sort of interesting
File Directory
Accessing chinese folder through URL