How to convert a file to Base64?

String value = Base64.encodeToString(bytes, Base64.DEFAULT);

But you can directly convert it in to String .Hope this will work for you.

Leave a Comment