-
-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Hi @j256 told me to put this issue here. I use this code to get the Mime Type of the excel file but it shows null in mimeType of ContentInfo. I can get the file format from message and name properties but I really need the mimeType
and extension. I've attached the file so you can test it too.
try {
ContentInfoUtil util = new ContentInfoUtil();
InputStream stream = new FileInputStream(file);
ContentInfo info = util.findMatch(stream);
if (info != null) {
String mimeType1 = info.getMimeType();
}
} catch (Exception e){
e.printStackTrace();
}
Metadata
Metadata
Assignees
Labels
No labels