| | |
| | | } |
| | | String file_uuid = dt.getString(i, MobileCoreConst.NAV_BAR_IMG); |
| | | try { |
| | | String bytes = null; |
| | | byte[] fileContent = fileManagerService.getFileContent(file_uuid); |
| | | if(fileContent==null || fileContent.length==0){ |
| | | dt.setFieldValue(i, MobileCoreConst.NAV_BAR_IMG, null); |
| | | navBarEntities.add(new NavBarEntity(dt.getFieldSetEntity(i))); |
| | | continue; |
| | | if (fileContent != null && fileContent.length > 0) { |
| | | bytes = Base64.encodeBase64String(fileContent); |
| | | } |
| | | String bytes = Base64.encodeBase64String(fileContent); |
| | | dt.setFieldValue(i, MobileCoreConst.NAV_BAR_IMG, bytes); |
| | | } catch (Exception e) { |
| | | dt.setFieldValue(i, MobileCoreConst.NAV_BAR_IMG, null); |