apidocs / com.srv4pos.server.api.seller / SellerService / putPicture

putPicture

fun putPicture(version: Int, pictureFilename: String, picture: InputStream, contentType: String): Unit

Send picture to the server.

Parameters

version - expected latest version of seller

pictureFilename - picture filename. must match to com.srv4pos.server.api.infrastructure.Constraints.WINDOWS_FILENAME_REGEX

picture - body of the picture. method doesn't close the stream

contentType - content type of the image

Exceptions

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

com.srv4pos.server.api.exceptions.VersionConflictJsonException - if version doesn't match to seller version

See Also

SellerServiceSample