Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SOAP Message Attachment MIME Problem

843834Mar 6 2002 — edited Mar 9 2005
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 6 2005
Added on Mar 6 2002
7 comments
5,632 views