mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-31 19:34:52 +01:00
Avoid using encoder flag to decode Base64 string...
This commit is contained in:
parent
ceab0903cf
commit
8299487f6d
@ -33,5 +33,5 @@ fun ByteArray.toBase64NoPadding(): String {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun String.fromBase64NoPadding(): ByteArray {
|
fun String.fromBase64NoPadding(): ByteArray {
|
||||||
return Base64.decode(this, Base64.NO_PADDING or Base64.NO_WRAP)
|
return Base64.decode(this, Base64.DEFAULT)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user