Package org.b3log.latke.image

Examples of org.b3log.latke.image.ImageService


                    imageNames.add(row + "/" + column + ".png");
                }

            }

            final ImageService imageService = ImageServiceFactory.getImageService();

            final Iterator<String> i = imageNames.iterator();
            while (i.hasNext()) {
                final String imageName = i.next();
                final ZipEntry zipEntry = zipFile.getEntry(imageName);

                final BufferedInputStream bufferedInputStream = new BufferedInputStream(zipFile.getInputStream(zipEntry));
                final byte[] captchaCharData = new byte[bufferedInputStream.available()];
                bufferedInputStream.read(captchaCharData);
                bufferedInputStream.close();

                final Image captchaChar = imageService.makeImage(captchaCharData);

                CAPTCHAS.put(imageName, captchaChar);
            }

            zipFile.close();
View Full Code Here


                    imageNames.add(row + "/" + column + ".png");
                }

            }

            final ImageService imageService =
                    ImageServiceFactory.getImageService();
            final Iterator<String> i = imageNames.iterator();
            while (i.hasNext()) {
                final String imageName = i.next();
                final ZipEntry zipEntry = zipFile.getEntry(imageName);
View Full Code Here

TOP

Related Classes of org.b3log.latke.image.ImageService

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.