Have a look at my HTML Code and my Java code.
I m trying to see the total contents when a form is submitted with enctype=multipa rt/form-data.
[code=html]
<html>
<head>
<title>Simple File Upload Test</title>
</head>
<body>
<form name = "test_form" method ="POST" enctype="multip art/form-data" action = "../jsp/FileUpload.jsp" >
<input type="file">
<input type="submit">
</form>
</body>
</html>
[/code]
[code=java]
ServletInputStr eam in = request.getInpu tStream();
//Here request is the reference of HttpServletRequ est.
byte b[] = new byte[255];
int len;
while((len = in.read(b))!=-1) out.print(new String(b,0,len) );
[/code]
My O/P is showing something like this........... ...!
Can't I get the total Content sent by the Browser?
Please help.
Kind regards,
Dmjpro.
I m trying to see the total contents when a form is submitted with enctype=multipa rt/form-data.
[code=html]
<html>
<head>
<title>Simple File Upload Test</title>
</head>
<body>
<form name = "test_form" method ="POST" enctype="multip art/form-data" action = "../jsp/FileUpload.jsp" >
<input type="file">
<input type="submit">
</form>
</body>
</html>
[/code]
[code=java]
ServletInputStr eam in = request.getInpu tStream();
//Here request is the reference of HttpServletRequ est.
byte b[] = new byte[255];
int len;
while((len = in.read(b))!=-1) out.print(new String(b,0,len) );
[/code]
My O/P is showing something like this........... ...!
Code:
-----------------------------5238189273319--
Please help.
Kind regards,
Dmjpro.
Comment