My min api level is 21, so I would have to add extra logic to use that
c
Chrimaeon
01/14/2023, 4:59 PM
I’d then create a api level switch to not create unnecessary strings on newer phones.
Chrimaeon
01/14/2023, 5:01 PM
or as you are on Android there is also
android.util.Base64
a
Abhishek Sharma
01/16/2023, 1:17 PM
Not sure about simplicity but if the encoding object is too large, then that might be a performance issue, as that would load the entire object into memory once, maybe stream the protocol buffers encoding to avoid loading the entire object.