mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	防止Excel导入图片可能出现的异常
This commit is contained in:
		@@ -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);
 | 
			
		||||
                    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user