用简单的代码来实现文件上传_MySQL
时间:2021-07-01 10:21:17
帮助过:40人阅读
代码如下,可以参考一下
(resin1.2)--〉
forms.jsp
multipart.jsp
<%
String fileName = request.getParameter("file");
FileInputStream is = new FileInputStream(fileName);
int ch;
while ((ch = is.read()) >= 0)
out.print((char) ch);
is.close();
%>