Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AttachmentPart getContentType() gives "application/octet-stream"  RSS feed

Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in my case I have been accepting attachments as pure XML File or a Zipped File containing other XML Files.

my problem: how to distinguish between these 2 types , given the fact that I have been using javax.activation.DataHandlers both on the client and server side.
Client Code:

In the server side:

the contentTypeAttachmentPart is always application/octet-stream NOT application/zip or text/xml(as in the case of the soap body)

[ February 02, 2005: Message edited by: R�stem-� Zal� ]
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!