I have a requirement to convert a big binary number (as input to me in form of String) to a decimal number and then persist this decimal number in Number(38) data type column of oracle database table.

Please suggest as which data type I should be using to hold this big decimal number and how to convert this binary representation string data to decimal number.

BigInteger bigInt = new BigInteger("100010001000100010001000100010011000011100010001000100010001000100010011000011111111111111111111111111111111111111111111111100",2);