private final String comment;
FluxtreamCapturePhoto(final long guestId, @NotNull final byte[] photoBytes, @NotNull final PhotoUploadMetadata photoUploadMetadata) throws IllegalArgumentException, NoSuchAlgorithmException, IOException, FluxtreamCapturePhotoStore.UnsupportedImageFormatException {
// Get the image type. If this is null, then it's not a supported type.
final ImageType tempImageType = ImageUtils.getImageType(photoBytes);
if (tempImageType == null) {
throw new FluxtreamCapturePhotoStore.UnsupportedImageFormatException("The photoBytes do not contain a supported image format");
}
imageType = tempImageType;