Java Base64 解码示例:将 Base64 编码字符串还原为原始数据
import java.util.Base64;
String encodedString = 'HVsoJoTflSlh5/2B8GTZ3YtTjiH9UsV/i1OOIf1SxX8='; byte[] decodedBytes = Base64.getDecoder().decode(encodedString); String decodedString = new String(decodedBytes); System.out.println(decodedString);
原文地址: https://www.cveoy.top/t/topic/mYiz 著作权归作者所有。请勿转载和采集!