private static final Logger log = Logger.getLogger(ImageService.class.getName());
public void saveImages(List<String> imageBytes, List<String> imageFileNames, List<String> imageContentTypes, Key parentKey) throws IOException{
for (int i = 0; i < imageBytes.size(); i++) {
Image image = new Image();
byte[] imgBytes = IOUtils.toByteArray(IOUtils.toInputStream(imageBytes.get(i), BYTES_ENCODING));
image.setImage(imgBytes);
image.setName(imageFileNames.get(i));
image.setContentType(imageContentTypes.get(i));
image.setParentItemKey(parentKey);
image.setIcon(getIconFromImage(imgBytes));
getObjectify().put(image);
}
}