I want to parse a Scan object to Base64. I know that there is a method to
do it, but this method in the beginning it was a scope of package and I
can't update the version of this library and I can't use it.
I have checked the code and it seems that it does more than encode to
Base64 and do some th
Say you wan to encode a scan to base64 ? then you may need to encode the
scan to protobuf Scan object, then encode the protobuf byte[] to Base64.
1. Scan scan = ...
2. ClientProtos.Scan protoScan = ProtobufUtil#toScan(scan);
3. byte[] bytes = make the protoScan to byte[];
4. encode the bytes to ba