Package co.mastermindcms.modules.beans
Class ImageUploader
- java.lang.Object
-
- co.mastermindcms.modules.beans.ImageUploader
-
@Component public class ImageUploader extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private CommonProperties
commonProperties
private co.mastermindcms.modules.filestorage.services.FileManagerService
fileManagerService
-
Constructor Summary
Constructors Constructor Description ImageUploader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
findAllFiles(java.lang.String destination)
java.lang.String
findExistingFile(java.lang.String destination)
java.lang.String
uploadImageData(byte[] imageData, java.lang.String fileName, java.lang.String destination)
-
-
-
Field Detail
-
commonProperties
@Autowired private CommonProperties commonProperties
-
fileManagerService
@Autowired private co.mastermindcms.modules.filestorage.services.FileManagerService fileManagerService
-
-
Method Detail
-
uploadImageData
public java.lang.String uploadImageData(byte[] imageData, java.lang.String fileName, java.lang.String destination) throws java.io.IOException
- Throws:
java.io.IOException
-
findAllFiles
public java.util.List<java.lang.String> findAllFiles(java.lang.String destination)
-
findExistingFile
public java.lang.String findExistingFile(java.lang.String destination)
-
-