81,092
社区成员
发帖
与我相关
我的任务
分享
byte[] data = xxx(); //获得接口的图片信息
ByteArrayInputStream bis = new ByteArrayInputStream(data);
PreparedStatement ps = DBConnection.prepareStatement(your_sql);
ps.setBinaryStream(parameterIndex, bis, data.length);
ps.executeUpdate();