日期:2014-05-17 浏览次数:20651 次
byte[] data = xxx(); //获得接口的图片信息 ByteArrayInputStream bis = new ByteArrayInputStream(data); PreparedStatement ps = DBConnection.prepareStatement(your_sql); ps.setBinaryStream(parameterIndex, bis, data.length); ps.executeUpdate();