Interface ImageApi


public interface ImageApi
ImageApi contains all the api operations for handling Image of DzidziApp.
  • Method Summary

    Modifier and Type
    Method
    Description
    getImageById(UUID imageId)
    It gets image by the given id.
    byte[]
    It loads the image from the file storage by the given id.
  • Method Details

    • getImageById

      Image getImageById(UUID imageId)
      It gets image by the given id.
      Parameters:
      imageId - the id of the image
      Returns:
      the image found
      Throws:
      com.dzidzi.exception.EntityNotFoundException - when image is not found
    • loadImageFromFileStorage

      byte[] loadImageFromFileStorage(UUID imageId)
      It loads the image from the file storage by the given id.
      Parameters:
      imageId - the id of the image
      Returns:
      the image resource