|  |  | 
 |  |  |  | 
 |  |  |     public WriteCellData<?> convertToExcelData(byte[] value, ExcelContentProperty contentProperty, GlobalConfiguration globalConfiguration) throws Exception { | 
 |  |  |         WriteCellData cellData = new WriteCellData()  ; | 
 |  |  |         List<ImageData> list = new ArrayList<>(); | 
 |  |  |         ImageData imd = new ImageData(); | 
 |  |  |         imd.setImage(value); | 
 |  |  |         imd.setImageType(ImageData.ImageType.PICTURE_TYPE_PICT); | 
 |  |  |         imd.setLeft(10); | 
 |  |  |         imd.setTop(10); | 
 |  |  |         imd.setRight(10); | 
 |  |  |         imd.setBottom(10); | 
 |  |  |         list.add(imd) ; | 
 |  |  |         cellData.setImageDataList(list); | 
 |  |  |         cellData.setType(CellDataTypeEnum.EMPTY); | 
 |  |  |         if(value != null && value.length >0){ | 
 |  |  |             List<ImageData> list = new ArrayList<>(); | 
 |  |  |             ImageData imd = new ImageData(); | 
 |  |  |             imd.setImage(value); | 
 |  |  |             imd.setImageType(ImageData.ImageType.PICTURE_TYPE_PICT); | 
 |  |  |             imd.setLeft(10); | 
 |  |  |             imd.setTop(10); | 
 |  |  |             imd.setRight(10); | 
 |  |  |             imd.setBottom(10); | 
 |  |  |             list.add(imd) ; | 
 |  |  |             cellData.setImageDataList(list); | 
 |  |  |             cellData.setType(CellDataTypeEnum.EMPTY); | 
 |  |  |         }else{ | 
 |  |  |             cellData.setStringValue(""); | 
 |  |  |             cellData.setType(CellDataTypeEnum.STRING); | 
 |  |  |         } | 
 |  |  |         return cellData; | 
 |  |  |     } | 
 |  |  |  |