public static Object readObject(java.sql.ResultSet resultSet,int index) throws Exception {
  ObjectInputStream objIn=new ObjectInputStream(resultSet.getBinaryStream(index));
  Object obj=objIn.readObject();
  objIn.close();
  return obj;
}

public static Object readObject ( java . sql . ResultSet resultSet , int index ) throws Exception { ObjectInputStream objIn = new ObjectInputStream ( resultSet . getBinaryStream ( index ) ) ; Object obj = objIn . readObject ( ) ; objIn . close ( ) ; return obj ; }
given a resultset and an index into the columns of that resultset , read binary data from the column which represents a serialized object , and re - create the object .
