mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
This commit is contained in:
+4
@@ -187,6 +187,10 @@ public class BufferedImageHttpMessageConverter extends AbstractHttpMessageConver
|
||||
imageWriter.setOutput(imageOutputStream);
|
||||
imageWriter.write(null, new IIOImage(image, null, null), iwp);
|
||||
}
|
||||
else {
|
||||
throw new HttpMessageNotWritableException(
|
||||
"Could not find javax.imageio.ImageWriter for Content-Type [" + contentType + "]");
|
||||
}
|
||||
}
|
||||
finally {
|
||||
if (imageWriter != null) {
|
||||
|
||||
Reference in New Issue
Block a user