spring-framework / org.springframework.http.converter / BufferedImageHttpMessageConverter / setDefaultContentType

setDefaultContentType

open fun setDefaultContentType(@Nullable defaultContentType: MediaType): Unit

Sets the default Content-Type to be used for writing.

Exceptions

IllegalArgumentException - if the given content type is not supported by the Java Image I/O API