There is a limitation on RSA encryption with large files and strings. That is, Java RSA has a encryption size limit of 117 bytes for PKCS v1.5 padding. This limitation is fine as RSA operation is computationally intensive and should be used for key exchange.
But, if you really want to perform RSA encryption on large file, you will have to break the file into small block, ie, byte. That is encrypt in 100 bytes and decrypt in 128 bytes