Java tutorial
//package com.java2s; import java.math.BigInteger; public class Main { public static BigInteger OS2IP(byte[] _os) { byte[] _osWithPadding = new byte[_os.length + 1]; System.arraycopy(_os, 0, _osWithPadding, 1, _os.length); return new BigInteger(_osWithPadding); } }