S
Sigi
I'm developing a web application which has to receive binary files uploaded
by users through a form.
This is the form (which is inside a JSP):
<form method="post" action="MyServlet" enctype="multipart/form-data"
id="upform">
<p><input name="fileupload" size="30" id="fileupload" type="file"></p>
<p><input id="button" style="width: 135px;" value="Invia" type="submit"></p>
</form>
In the servlet MyServlet, I need to write in the doPost method some code to
receive the file from HTTP POST and store it into a byte array (without
saving the file on disk)
How can I do?
Thanks.
by users through a form.
This is the form (which is inside a JSP):
<form method="post" action="MyServlet" enctype="multipart/form-data"
id="upform">
<p><input name="fileupload" size="30" id="fileupload" type="file"></p>
<p><input id="button" style="width: 135px;" value="Invia" type="submit"></p>
</form>
In the servlet MyServlet, I need to write in the doPost method some code to
receive the file from HTTP POST and store it into a byte array (without
saving the file on disk)
How can I do?
Thanks.