getBytespublic byte[] getBytes(int columnIndex) throws SQLException Gets the value of the designated column in the current row of this ResultSet object as a byte array in the Java programming language. The bytes represent the raw values returned by the driver.你看过api了吧 我看你的代码感觉rs应该是ResultSet.. 然后它的api参考上面。getBytes(1)将第一列的对象以byte[]的形式返回。
throws SQLException
Gets the value of the designated column in the current row of this ResultSet object as a byte array in the Java programming language. The bytes represent the raw values returned by the driver.你看过api了吧 我看你的代码感觉rs应该是ResultSet.. 然后它的api参考上面。getBytes(1)将第一列的对象以byte[]的形式返回。
byte[] getBytes(String charsetName)
使用指定的字符集将此 String 解码为字节序列,并将结果存储到一个新的字节数组中。
可以结贴了