When encoding the following data using Base64 encoder, the resulting Base64 string appears corrupted or malformed. I suspect the data might be altered or improperly handled before the encoding process ...
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference at android.content.ClipData ...