It was a perfectly working code and I haven't touched anything. But all of a sudden datahandler in the axis2 webservice for the mime attachment is always returning a junk of 9 characters. The SOAP client is sending a 75 KB attachment. DataHandler dh = doc.getBase64Binary(); (doc is a ContentDocument) outputStream = new ByteArrayOutputStream(); dh.writeTo(outputStream); I'm completely clueless; I have monitored the HTTP traffic and verified that a valid attachment is indeed getting sent, and its CID is correctly referenced for the attachment in the SOAP body. Has anyone faced this bizarre problem and how to go about it? In the past I have noticed that the datahandler would return a junk if the CID was referenced in the SOAP body but no mime attachment with that CID actually was received. But in my setup the mime attachment indeed is being sent.
Thanks. kannan
