赞
踩
Java常用工具类代码整理——之Base64工具类
/**
* BASE64字符串转回文件
* @param filePath 文件绝对路径
* @param base64 编码字符串
* @throws Exception
*/
public static void decodeToFile(String filePath, String base64) throws Exception {
byte[] bytes = decodeString(base64);
byteArrayToFile(bytes, filePath);
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。