dev@jax-ws.java.net

Re: [Fwd: JAXB Image attachment issues]

From: Vivek Pandey <Vivek.Pandey_at_Sun.COM>
Date: Mon, 27 Mar 2006 15:58:23 -0800

I can transfer 110 KB image using JAXWS withought any problem and I see
right number of bytes as of the image being transferred.

Can you verify on the client side the size of the image that you're sending?

-vivek.

Kohsuke Kawaguchi wrote:
>
> Hi,
>
> I think we are testing MTOM in JAX-WS, with almost exact configuration
> as his. How big an image file are we trying? Can we try a big one
> (like 100K or so), just to exercise more code?
>
>
> ------------------------------------------------------------------------
>
> Subject:
> JAXB Image attachment issues
> From:
> Dan Diephouse <dan_at_envoisolutions.com>
> Date:
> Mon, 27 Mar 2006 09:46:29 -0500
> To:
> users_at_jaxb.dev.java.net
>
> To:
> users_at_jaxb.dev.java.net
>
>
> I have a schema which contains an image like so:
>
> <s:element name="image" type="s:base64Binary"
> xmime:expectedContentTypes="image/jpeg"/>
>
> I've been loading in the image and setting the Image field on my Jaxb
> object:
>
> File file = getTestFile("src/test-resources/xfire.jpg");
> Image image = ImageIO.read(getTestFile("src/test-resources/xfire.jpg"));
> response.setImage(image);
>
> The image is about 25K. However, in my AttachmentMarshaller I only
> receive a 3K byte[] array from this method:
>
> public String addMtomAttachment(byte[] data,
> int offset,
> int length,
> String mimeType,
> String elementNamespace,
> String elementLocalName)
>
> Any ideas why I am not receiving the real raw data from the image?
>
> - Dan
>

-- 
Vivek Pandey
Web Services Standards and Technologies
Sun Microsystems Inc.