You cannot just use "select" statement for reading long col in JAVA.

You should use PreparedStatement.setAsciiStream(..) method.
For reading you must use ResultSet.getBytes(...).


Tamil