|
@ -816,7 +816,7 @@ public class DhDeviceUtil { |
|
|
DataInputStream dataInputStream = new DataInputStream(url.openStream()); |
|
|
DataInputStream dataInputStream = new DataInputStream(url.openStream()); |
|
|
byte[] originBytes = toByteArray(dataInputStream); |
|
|
byte[] originBytes = toByteArray(dataInputStream); |
|
|
|
|
|
|
|
|
fileBytes = compressPicCycle(originBytes, 100L, 0.2); |
|
|
fileBytes = compressPicCycle(originBytes, 100L, 0.3); |
|
|
} catch (IOException e) { |
|
|
} catch (IOException e) { |
|
|
logger.error("图片上传异常", e); |
|
|
logger.error("图片上传异常", e); |
|
|
throw new RenException("图片上传异常"); |
|
|
throw new RenException("图片上传异常"); |
|
|