At least on the c++ openssl the process is:
1 - Generate two BigNumbers from the byte array (modulus and exponent)
2 - Create a new (empty) RSA object
3 - Set the n (modulus) and e (public exponent) attributes of the RSA object.
You may be able to replicate this process in any technology (java, java card, etc)