Class ProfilePictureService

java.lang.Object
vaultWeb.services.ProfilePictureService

@Service public class ProfilePictureService extends Object
Service responsible for file-system operations related to profile pictures.
  • Constructor Details

    • ProfilePictureService

      public ProfilePictureService()
  • Method Details

    • store

      public String store(org.springframework.web.multipart.MultipartFile file, Long userId) throws IOException
      Validates and stores an uploaded profile picture on disk.
      Throws:
      IOException
    • delete

      public void delete(String publicPath)
      Deletes a profile picture file from disk.