mirror of
https://gitee.com/jzsw-it/yexuejc-base.git
synced 2025-06-07 06:14:04 +08:00
变更Base64使用包,使其兼容openjdk11
This commit is contained in:
parent
3987f982be
commit
b97fdf65bc
@ -246,10 +246,7 @@ public class ImgUtil {
|
|||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
public static byte[] decode(String encodeStr) throws IOException {
|
public static byte[] decode(String encodeStr) throws IOException {
|
||||||
byte[] bt = null;
|
return Base64.getDecoder().decode(encodeStr);
|
||||||
BASE64Decoder decoder = new BASE64Decoder();
|
|
||||||
bt = decoder.decodeBuffer(encodeStr);
|
|
||||||
return bt;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user