importsun.misc.BASE64Decoder;//将base64转换为byte[] importsun.misc.BASE64Encoder;//转byet[]换为base64 publicclassTest{ publicstaticvoidmain(Stringargs[])throwsIOException { //定义一个BASE64Encoder BASE64Encoderencode=newBASE64Encoder(); //将byte[]转换为base64 Stringbase64=encode.encode("五笔字型