Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to create File object from InputStream

807606May 18 2007 — edited May 22 2007
Hi everybody
Can I know a way to create a File object from InputStream object
Here's my code:

URL url = loader.getResource(xsdFile); //Thats a schema file..not to worry
InputStream istream = url.openStream();

Now from that 'istream' I need to build File object.

Thank you all
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 19 2007
Added on May 18 2007
6 comments
1,181 views