Commit 54bfa627 authored by RuoYi's avatar RuoYi

防止Excel导入图片可能出现的异常

parent 36c05818
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment