EncodingUtils.getBytes(payload, "BASE64");
this is the line which we were using with apache library included in gradle to get bytes of payload string with char set as BASE64
after removing this
useLibrary 'org.apache.http.legacy'
Encoding util class is not getting resolved so what is the best way to do this same function in Android ?
Input
device_type=1&firstname=hhj&=
This is the way the input would be a long string which has other parameters too output would be in bytes since i have to post this result in url like this
mWebView.postUrl(url, myRes);