RSA PKCS1PAD2 error

Use bytes => base64 as suggested above.
Also read this How to work with byte arrays