public class SpringletsImageFileConverter extends Object implements org.springframework.core.convert.converter.Converter<org.springframework.web.multipart.MultipartFile,EmbeddableImage>
Converter that will convert the received MultipartFiles to a EmbeddableImage type
This converter will be active only if the ${springlets.image.management}
property has been registered in the Environment and if it has been setted with
true value.
| Constructor and Description |
|---|
SpringletsImageFileConverter() |
| Modifier and Type | Method and Description |
|---|---|
EmbeddableImage |
convert(org.springframework.web.multipart.MultipartFile source)
Transforms the received MultipartFile to a EmbeddableImage file
|
public EmbeddableImage convert(org.springframework.web.multipart.MultipartFile source)
convert in interface org.springframework.core.convert.converter.Converter<org.springframework.web.multipart.MultipartFile,EmbeddableImage>Copyright © 2018 DISID Corporation. All rights reserved.