SOAP Message Attachment MIME Problem
843834Mar 6 2002 — edited Mar 9 2005Hi there,
I'm having problem trying to send a binary file with SOAP.
I can send an XML Doc (MIME type text/xml) but when I try to put the ByteArrayInputStream that holds the binary file and the content to application/octec-stream
I got this exception:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/octet-stream
at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851)
at javax.activation.DataHandler.writeTo(DataHandler.java:305)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:635)
at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:233)
at com.sun.xml.messaging.soap.MessageImpl.saveChanges(MessageImpl.java:371)
Anyone had this problem ?
Any work around ?
Or this is a problem because the JAXM is not fineshed yet ?
Thanks,
Marcio