• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Anonymous
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)
..

Thanks,
Rusdem
[ February 02, 2005: Message edited by: R�stem-� Zal� ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!