- /**
- * Sets the encoded image data. The encoded image data can only be set once
- * and it must not be {@code null}.
- *
- * @param imageData
- * The encoded image data
- * @return This temporary image
- */
- public TemporaryImage setImageData(byte[] imageData) {
- Validation.begin().isNotNull("Image Data", imageData).isNull("Previous Image Data", this.imageData).check();
- this.imageData = imageData;
- return this;