Topic: 怎么把客户端的图片上传到服务端的sqlserver2000数据库! |
Print this page |
1.怎么把客户端的图片上传到服务端的sqlserver2000数据库! | Copy to clipboard |
Posted by: zonghao Posted on: 2008-03-25 13:56 我写了点代码,但是只支持把服务端的图片上传到服务端的数据库,请问如何把客户端的图片上传到服务端的sqlserver2000数据库,急,在线等! com.jspsmart.upload.File file = su.getFiles().getFile(0); String zlnr=file.getFilePathName(); java.io.File fileliu=new java.io.File(zlnr); FileInputStream image=new FileInputStream(fileliu); PreparedStatement ps = null; ps=conn.prepareStatement("insert into ry_ic_photo_temp values(´"+rybh+"´,?)"); ps.setBinaryStream(1,image,image.available()); ps.execute(); |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |