wap部分配置
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user