apidocs / com.srv4pos.server.api.category / CategoryService / getPictureFromHistory

getPictureFromHistory

fun getPictureFromHistory(pictureVersion: Int?, categoryIdentifier: String, pictureFilename: String): InputStream?

Returns body of the picture for particular version number.

Parameters

pictureVersion - particular version of picture

categoryIdentifier - category identifier

pictureFilename - just a normal windows filename according to com.srv4pos.server.api.infrastructure.Constraints.WINDOWS_FILENAME_REGEX

Exceptions

com.srv4pos.server.api.exceptions.NotFoundJsonException - if image is not found

com.srv4pos.server.api.exceptions.ReferenceNotFoundJsonException - if category is not found

Return
body of the picture

See Also

CategoryServiceSample