wap部分配置

This commit is contained in:
lyf
2023-01-30 09:35:01 +08:00
parent c513d14203
commit b5ddf6eb9d
5 changed files with 35 additions and 33 deletions

View File

@@ -142,11 +142,12 @@ public class BaiduFaceDetectServiceImpl implements BaiduFaceDetectService {
ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try {
Thumbnails.of(bais).size(1920, 1080).toOutputStream(baos);
} catch (IOException e) {
throw new RuntimeException(e);
}
//TODO 图片压缩 暂时注释
// try {
// Thumbnails.of(bais).size(1920, 1080).toOutputStream(baos);
// } catch (IOException e) {
// throw new RuntimeException(e);
// }
dist = DatatypeConverter.printBase64Binary(baos.toByteArray());