我想检查下面的语句是否为null
byte [] imageBytes = rs.getBytes(" doctimg");
我的代码是......
while(rs.next() ) {
JsonObject row = new JsonObject();
/*Want to Check this
byte[] imageBytes = rs.getBytes("doctimg");
null or not*/
byte[] imageBytes = rs.getBytes("doctimg");
String imageBase64 = DatatypeConverter.printBase64Binary(imageBytes);
row.add("doctId",new JsonPrimitive(""+rs.getString("doctId")));
row.add("deptId",new JsonPrimitive(""+rs.getString("deptId")));
row.addProperty("img", imageBase64);
data.add(row);
}