Browse Source

conversation
Arjen Poutsma 16 years ago
parent
commit
1915192d9a
  1. 4
      org.springframework.web/src/main/java/org/springframework/http/converter/BufferedImageHttpMessageConverter.java

4
org.springframework.web/src/main/java/org/springframework/http/converter/BufferedImageHttpMessageConverter.java

@ -187,6 +187,10 @@ public class BufferedImageHttpMessageConverter extends AbstractHttpMessageConver @@ -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…
Cancel
Save