Package org.apache.isis.applib.value

Examples of org.apache.isis.applib.value.Blob


        }

        String name = getDatastoreMapping(0).getString(resultSet, exprIndex[0]);
        String mimeTypeBase = getDatastoreMapping(1).getString(resultSet, exprIndex[1]);
        byte[] bytes = (byte[]) getDatastoreMapping(2).getObject(resultSet,exprIndex[2]);
        return new Blob(name, mimeTypeBase, bytes);
    }
View Full Code Here


        final Object object = adapter.getObject();
        if(!(object instanceof Blob)) {
            return null;
        }
       
        final Blob blob = (Blob)object;
        final MimeType mimeType = blob.getMimeType();
        if(mimeType == null || !mimeType.getPrimaryType().equals("image")) {
            return null;
        }
       
        final BufferedImage image = asBufferedImage(blob);
View Full Code Here

TOP

Related Classes of org.apache.isis.applib.value.Blob

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.