git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1682 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
68d07767ec
commit
2f6a25cfb7
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue