Java对图片Base64转码——HTML对Base64解码「Java加强版」( 三 )


System.out.printf("\t\t** 写入失败 **\n");
System.out.printf("\t\t*********************************************\n");
System.out.printf("\t\t** Thanks!!! **\n");
System.out.printf("\t\t↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑\n");
return "err" ;
}
} catch (FileNotFoundException e) {
//e.printStackTrace();
System.out.println();
System.out.printf("\t\t*********************************************\n");
System.out.printf("\t\t** 创建txt失败 **\n");
System.out.printf("\t\t*********************************************\n");
System.out.printf("\t\t** Thanks!!! **\n");
System.out.printf("\t\t↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑\n");
return "err" ;
} finally {
try {
if(mm!=null){
mm.close();
}
} catch (IOException e) {
//e.printStackTrace();
System.out.println();
System.out.printf("\t\t*********************************************\n");
System.out.printf("\t\t** RandomAccessFile关闭失败 **\n");
System.out.printf("\t\t*********************************************\n");
System.out.printf("\t\t** Thanks!!! **\n");
System.out.printf("\t\t↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑\n");
}
}
return "success" ;
}
}
HTML对Base64解码






W_Jp Base64解码







W_Jp 给您的结果




继续给大家一组测试数据,尝试用我的HTML代码试试,看看能不能显示出图片
/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0a
HBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIy
【Java对图片Base64转码——HTML对Base64解码「Java加强版」】MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjI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