Package com.luna.common.encrypt
Class Base64Util
java.lang.Object
com.luna.common.encrypt.Base64Util
- Author:
- Luna@win10
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]Translates the specified Base64 string into a byte array.static StringencodeBase64(byte[] from) Base64 encoding.static Integer通过图片base64流判断图片等于多少字节 image 图片流static boolean检测是否为base64编码
-
Constructor Details
-
Base64Util
public Base64Util()
-
-
Method Details
-
encodeBase64
Base64 encoding.- Parameters:
from- The src data.- Returns:
- cryto_str
-
decodeBase64
Translates the specified Base64 string into a byte array.- Parameters:
s- the Base64 string (not null)- Returns:
- the byte array (not null)
-
imageSize
通过图片base64流判断图片等于多少字节 image 图片流 -
isBase64
检测是否为base64编码- Parameters:
str-- Returns:
-