org.springframework.http.converter.BufferedImageHttpMessageConverter Java Examples
The following examples show how to use
org.springframework.http.converter.BufferedImageHttpMessageConverter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CaptchaConfiguration.java From java-platform with Apache License 2.0 | 5 votes |
@Bean public WebMvcConfigurer captchaWebMvcConfigurer() { return new WebMvcConfigurerAdapter() { @Override public void extendMessageConverters(List<HttpMessageConverter<?>> converters) { BufferedImageHttpMessageConverter bufferedImageHttpMessageConverter = new BufferedImageHttpMessageConverter(); if (converters.size() > 0) { converters.add(converters.size() - 1, bufferedImageHttpMessageConverter); } else { converters.add(bufferedImageHttpMessageConverter); } } }; }
Example #2
Source File: MolgenisWebAppConfig.java From molgenis with GNU Lesser General Public License v3.0 | 5 votes |
@Override public void configureMessageConverters(List<HttpMessageConverter<?>> converters) { converters.add(gsonHttpMessageConverter); converters.add(new BufferedImageHttpMessageConverter()); converters.add(new CsvHttpMessageConverter()); converters.add(new ResourceHttpMessageConverter()); converters.add(new StringHttpMessageConverter()); converters.add(rdfConverter); }
Example #3
Source File: SpringBootApp.java From tutorials with MIT License | 4 votes |
@Bean public HttpMessageConverter<BufferedImage> createImageHttpMessageConverter() { return new BufferedImageHttpMessageConverter(); }