Package org.apache.axiom.attachments

Examples of org.apache.axiom.attachments.IncomingAttachmentStreams


        Attachments attachments = null;
        attachments = (Attachments)MessageContext.getCurrentMessageContext()
                .getProperty(MTOMConstants.ATTACHMENTS);
        // Get image data
        IncomingAttachmentStreams streams = attachments.getIncomingAttachmentStreams();
        IncomingAttachmentInputStream stream = streams.getNextStream();

        byte[] data = IOUtils.getStreamAsByteArray(stream);

        //setting response
        OMFactory fac = OMAbstractFactory.getOMFactory();
View Full Code Here


    public OMElement mtomSample(OMElement element) throws Exception {

        Attachments attachments = null;
        attachments = MessageContext.getCurrentMessageContext().getAttachmentMap();
        // Get image data
        IncomingAttachmentStreams streams = attachments.getIncomingAttachmentStreams();
        IncomingAttachmentInputStream stream = streams.getNextStream();

        byte[] data = IOUtils.toByteArray(stream);

        //setting response
        OMFactory fac = OMAbstractFactory.getOMFactory();
View Full Code Here

TOP

Related Classes of org.apache.axiom.attachments.IncomingAttachmentStreams

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.