Merge branch 'master' of https://gitee.com/anji-plus/report
@ -1,2 +1,19 @@
|
||||
## 介绍
|
||||
待完善
|
||||
## 新增大屏
|
||||

|
||||
|
||||
## 大屏简介
|
||||

|
||||
|
||||
## 工具简介
|
||||
### 1、文本框
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
### 2、滚动文本
|
||||
### 3、超链接
|
||||
### 4、当前时间
|
||||
### 5、图片
|
||||

|
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 |