FileInputStream fis = new FileInputStream(url);
byte []buf = new byte[fis.available()];
fis.read(buf);
fis.close();
String sql = "insert into student values ('" +name + "','" +no+ "',"+ buf +")";
db.executeUpdate(sql); 在这基础上能否修改下,能把fis的内容以流的形式写进去……
调试欢乐多
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货