Class ImageUploader


  • @Component
    public class ImageUploader
    extends java.lang.Object
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • fileManagerService

        @Autowired
        private co.mastermindcms.modules.filestorage.services.FileManagerService fileManagerService
    • Constructor Detail

      • ImageUploader

        public ImageUploader()
    • 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)