摘要: 判断图片真实格式的方法,文件格式不是看后缀名,而是看文件头的定义 public class ImgUtil { public static String imgType(InputStream inputStream) throws IOException { // 读取文件前几位 byte[] f 阅读全文
posted @ 2023-11-29 10:15 迷糊桃 阅读(328) 评论(0) 推荐(0) 编辑