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?
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com
attached mail follows:
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
--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com
http://netzooid.com/blog
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net