You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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();
}
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
ofContentInfo
. I can get the file format frommessage
andname
properties but I really need themimeType
and
extension
. I've attached the file so you can test it too.1.xls
The text was updated successfully, but these errors were encountered: