Package com.dzidzi.api
Interface ImageApi
public interface ImageApi
ImageApi contains all the api operations for handling
Image of DzidziApp.-
Method Summary
Modifier and TypeMethodDescriptiongetImageById(UUID imageId) It gets image by the given id.byte[]loadImageFromFileStorage(UUID imageId) It loads the image from the file storage by the given id.
-
Method Details
-
getImageById
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
It loads the image from the file storage by the given id.- Parameters:
imageId- the id of the image- Returns:
- the image resource
-