防止Excel导入图片可能出现的异常
This commit is contained in:
parent
36c058188a
commit
54bfa627f0
@ -340,8 +340,11 @@ public class ExcelUtil<T>
|
||||
{
|
||||
val = "";
|
||||
}
|
||||
byte[] data = image.getData();
|
||||
val = FileUtils.writeImportBytes(data);
|
||||
else
|
||||
{
|
||||
byte[] data = image.getData();
|
||||
val = FileUtils.writeImportBytes(data);
|
||||
}
|
||||
}
|
||||
ReflectUtils.invokeSetter(entity, propertyName, val);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user