Hi Everybody,
I am submitting a form in
jsp file to a
servlet :-
Partial jsp file contents are :-
<form name="searchexcel" method="POST" ENCTYPE="multipart/form-data">
<input type=file name="filename" >
</form>
partial code in servlet as follows :-
ServletInputStream sis = request.getInputStream();
byte[] b = new byte[1024];
int x=0;
while((x=sis.readLine(b,0,1024))>-1) {
*****
}
readline method is returning -1 at first attempt itself. It will be a great help if Can any one inform what could be the possible reasons for it.
Regards,
Neeraj.