Class LocalImageBase64FileConvert
java.lang.Object
com.gsitm.ustra.java.data.file.processor.convert.LocalImageBase64FileConvert
- All Implemented Interfaces:
FileConverter<LocalImageBase64FileConvert.Option,List<String>>
public class LocalImageBase64FileConvert
extends Object
implements FileConverter<LocalImageBase64FileConvert.Option,List<String>>
이미지를 base64 encoding 포맷으로 변경
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classfile preview 시의 option class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription이미지 변환 input builder 생성protected com.gsitm.ustra.java.core.utils.data.BiValue<byte[],String> convertUnspportedBase64ImageResource(byte[] originResourceBytes, String mimeType) Base64 format을 지원하지 않는 inputsteam 개체를 지원하는 형태로 변환한다.protected StringgetFileName(org.springframework.core.io.Resource resource) 리소스에서 파일 명 조회
-
Constructor Details
-
LocalImageBase64FileConvert
public LocalImageBase64FileConvert()
-
-
Method Details
-
convert
- Specified by:
convertin interfaceFileConverter<LocalImageBase64FileConvert.Option,List<String>>
-
getFileName
리소스에서 파일 명 조회- Parameters:
resource-- Returns:
- Throws:
IOException
-
convertUnspportedBase64ImageResource
protected com.gsitm.ustra.java.core.utils.data.BiValue<byte[],String> convertUnspportedBase64ImageResource(byte[] originResourceBytes, String mimeType) throws IOException Base64 format을 지원하지 않는 inputsteam 개체를 지원하는 형태로 변환한다.- Parameters:
originResourceBytes- 리소스 byte arraymimeType- mimeType- Returns:
- Throws:
IOException
-
builder
public static FileConvertInput.FileConvertInputBuilder<LocalImageBase64FileConvert.Option,List<String>> builder(String fileGrpId) 이미지 변환 input builder 생성- Parameters:
fileGrpId-- Returns:
-