Package su.mvc.model

Examples of su.mvc.model.Image


    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);
        }
    }
View Full Code Here

TOP

Related Classes of su.mvc.model.Image

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.