You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The exact output of java --version (or java -version for older Java releases).
openjdk version "17.0.4.1" 2022-08-12
OpenJDK Runtime Environment Temurin-17.0.4.1+1 (build 17.0.4.1+1)
OpenJDK 64-Bit Server VM Temurin-17.0.4.1+1 (build 17.0.4.1+1, mixed mode, sharing)
Extra information about OS version, server version, standalone program or web application packaging, executable wrapper, etc. Please state exact version numbers where applicable.
To Reproduce
Steps to reproduce the behavior:
Compile the below sample code
Download the sample image file
Run the code with the sample file
See error
Expected behavior
A clear and concise description of what you expected to happen.
Closing for now. If you have further details on #730 you can comment there. Or if you think this is a separate issue, reopen and add sample files and further details.
Describe the bug
when convert webp to jpeg,webp only 540kb, jvm -Xms=512m,-Xmx1536m , oom ,then application restart
Version information
The exact output of
java --version
(orjava -version
for older Java releases).openjdk version "17.0.4.1" 2022-08-12
OpenJDK Runtime Environment Temurin-17.0.4.1+1 (build 17.0.4.1+1)
OpenJDK 64-Bit Server VM Temurin-17.0.4.1+1 (build 17.0.4.1+1, mixed mode, sharing)
Extra information about OS version, server version, standalone program or web application packaging, executable wrapper, etc. Please state exact version numbers where applicable.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Example code
InputStream inputStream = null;
BufferedImage bufferedImage = null;
try {
URI uri = URI.create(imageUrl);
URL url = uri.toURL();
inputStream = url.openStream();
if (isImage) {
bufferedImage = ImageIO.read(inputStream);
if (bufferedImage == null) {
throw new IOException("read image fail");
}
ImageIO.write(bufferedImage, "jpeg", response.getOutputStream());
}else {
IoUtil.copy(inputStream, response.getOutputStream());
}
response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);
response.setHeader("Content-Disposition",
"attachment; filename=a.jpeg" );
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Expires", "0");
} catch (Exception exception) {
log.error("handle image fail", exception);
} finally {
IoUtil.close(inputStream);
}
The text was updated successfully, but these errors were encountered: