code:     protected Blob getBlob(ResultSet resultSet, int columnIndex, Metadata m) throws SQLException {
          byte[] bytes = resultSet.getBytes(columnIndex);
          if (!resultSet.wasNull()) {
              return new SerialBlob(bytes);
          }
          return null;
      }
  