i m trying to insert a BigInteger value in the oracle database.i m trying like this:
BigInteger a=new BigInteger("4280972057205720579205792572075927209857");
String str=new String(a.toByteArray());
now in the database :
PerparedStatement pstmt=con.prepareStatement("insert into database values(?)");
pstmt.setString(1,str);
pstmt.executeUpdate();
if i m using str="hello"
then it is working fine.but if i m using str=new String(a.toByteArray())
then nothing(null) is inserted in the database.why it is so.please explain and also suggest some method to do so.