-
how to receive files in a servlet from INPUT=file tag?
how to receive file from a INPUT=file tag in a servlet
eg
HTML file
<html>
<body>
<form action="servlet.YourServlet" method="get">
<input type="file" name="yourFile" size="50">
</body>
</html>
SERVLET file
req.getParameter("yourFile)"; // only gets the path name
question is how to get the whole file?
-
Re: how to receive files in a servlet from INPUT=file tag?
You need to use MultiPart Mime Parser. There are so many packages available
to read this. You can get orelly's implementation free from www.servlets.com.
"Patrick" <ho818@singnet.com.sg> wrote:
>
>how to receive file from a INPUT=file tag in a servlet
>
>eg
>HTML file
><html>
><body>
><form action="servlet.YourServlet" method="get">
><input type="file" name="yourFile" size="50">
></body>
></html>
>
>SERVLET file
>
>req.getParameter("yourFile)"; // only gets the path name
>
>question is how to get the whole file?
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|