hutool icon indicating copy to clipboard operation
hutool copied to clipboard

FileTypeUtil中无法获取2007以后版本office文件类型。

Open WayneLee5991 opened this issue 7 years ago • 1 comments

2007后office前n个byte值和zip格式有一部分是重复的,但是,后面是有不一样的!例如我们将office取值为‘504B030414000600080000002100’,这样就可以区分zip和office了。使用puyfileType方法也无法正确获取到,只能得到zip。

WayneLee5991 avatar Aug 05 '19 06:08 WayneLee5991

恩,这个并不准确,因为xlsx也是zip,后边的不同的可能是内容不同。

looly avatar Aug 07 '19 01:08 looly