Hi guys,
i've a question for you.
My Jsf Application allow user to upload a txt file thanks to a Myfaces
component.
I want manipulate later this file and i know that exist getInputStream
function that allow it.
My question is that i have to add to my application a java class that
does some operations on the file that i have uploaded.
The matter is that my application load a file in a bufferedReader with
BufferedReader br = new BufferedReader(file);
How can i put the inputstream of my uploaded file in the bufferedReader
to reuse my java application?
Please help me,i'm a newbie..excuse me for my english
Peter Van Weert - 06 Jun 2006 12:03 GMT
You can e.g. use:
http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStreamReader.html
i.e. something like:
... = new BufferedReader(new InputStreamReader(fileinputstream));
> Hi guys,
> i've a question for you.
[quoted text clipped - 12 lines]
> to reuse my java application?
> Please help me,i'm a newbie..excuse me for my english