关于图片上传到数据库的问题
在本机上可以把图片上传到数据库的表中,但是在其他电脑上却不能上传到数据库中,这是什么原因?谁有好的方法来告诉.谢谢!!
页面1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN ">
<HTML>
<HEAD>
<%@ page
language= "java "
contentType= "text/html; charset=GBk "
pageEncoding= "GBk "
%>
<META http-equiv= "Content-Type " content= "text/html; charset=GBk ">
<META name= "GENERATOR " content= "IBM WebSphere Studio ">
<META http-equiv= "Content-Style-Type " content= "text/css ">
<LINK href= "theme/Master.css " rel= "stylesheet " type= "text/css ">
<TITLE> aaa.jsp </TITLE>
</HEAD>
<BODY> <%
request.setCharacterEncoding( "gbk ");
%>
<FORM action= "ccc.jsp " method= "post ">
<TABLE border= "1 ">
<TBODY>
<TR>
<TD> 姓名 </TD>
<TD width= "339 "> <INPUT type= "text " name= "xm " size= "20 "> </TD>
</TR>
<TR>
<TD> 图片 </TD>
<TD width= "339 "> <INPUT type= "file " name= "image " size= "20 "> </TD>
</TR>
<TR>
<TD> </TD>
<TD width= "339 "> <INPUT type= "submit " name= "tj " value= "提交 "> </TD>
</TR>
</TBODY>
</TABLE>
</FORM>
</BODY>
</HTML>
页面2:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN ">
<HTML>
<HEAD>
<%@ page
language= "java "
contentType= "text/html; charset=GBK "
pageEncoding= "GBK "
import= "java.sql.*,com.linkdb.* "
%>
<%@ page import= "java.util.* "%>
<%@ page import= "java.text.* "%>
<%@ page import= "java.io.* "%>
<META http-equiv= "Content-Type " content= "text/html; charset=GBK ">
<META name= "GENERATOR " content= "IBM WebSphere Studio ">
<META http-equiv= "Content-Style-Type " content= "text/css ">
<LINK href= "theme/Master.css " rel= "stylesheet " type= "text/css ">
<TITLE> ccc.jsp </TITLE>
</HEAD>
<BODY>
<%
request.setCharacterEncoding( "gbk ");
String xm=request.getParameter( "xm ");
String picture=request.getParameter( "image ");
System.out.println(xm+ "asdfsadfasdf ");
FileInputStream str=new FileInputStream(picture);
Connection conn=null;
&