Merge branch 'master' of https://gitee.com/anji-plus/report
@ -1,2 +1,19 @@
|
|||||||
## 介绍
|
## 介绍
|
||||||
待完善
|
## 新增大屏
|
||||||
|
![img.png](../picture/dashboard/img.png)
|
||||||
|
|
||||||
|
## 大屏简介
|
||||||
|
![img_2.png](../picture/dashboard/img_2.png)
|
||||||
|
|
||||||
|
## 工具简介
|
||||||
|
### 1、文本框
|
||||||
|
![img_3.png](../picture/dashboard/img_3.png)
|
||||||
|
![img_4.png](../picture/dashboard/img_4.png)
|
||||||
|
![img_5.png](../picture/dashboard/img_5.png)
|
||||||
|
![img_6.png](../picture/dashboard/img_6.png)
|
||||||
|
|
||||||
|
### 2、滚动文本
|
||||||
|
### 3、超链接
|
||||||
|
### 4、当前时间
|
||||||
|
### 5、图片
|
||||||
|
![img_7.png](../picture/dashboard/img_7.png)
|
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 51 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 30 KiB |
@ -0,0 +1,31 @@
|
|||||||
|
package com.anjiplus.template.gaea.business.modules.file.util;
|
||||||
|
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
import java.io.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by raodeming on 2021/7/8.
|
||||||
|
*/
|
||||||
|
@Slf4j
|
||||||
|
public class FileUtils {
|
||||||
|
public static byte[] readFileToByteArray(File file) {
|
||||||
|
byte[] buffer = null;
|
||||||
|
try {
|
||||||
|
FileInputStream fis = new FileInputStream(file);
|
||||||
|
ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
||||||
|
byte[] b = new byte[1024];
|
||||||
|
int n;
|
||||||
|
while ((n = fis.read(b)) != -1) {
|
||||||
|
bos.write(b, 0, n);
|
||||||
|
}
|
||||||
|
fis.close();
|
||||||
|
bos.close();
|
||||||
|
buffer = bos.toByteArray();
|
||||||
|
} catch (IOException e) {
|
||||||
|
log.error("{}", e);
|
||||||
|
}
|
||||||
|
return buffer;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Before Width: | Height: | Size: 415 KiB After Width: | Height: | Size: 862 KiB |