Attachment content-type header not set properly for bmp files.
--------------------------------------------------------------
Key: AXIS2-4010
URL: https://issues.apache.org/jira/browse/AXIS2-4010
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Affects Versions: 1.4
Environment: Any OS/platform.
Reporter: Sean Cote
I am adding an attachment to a SOAP request, like so:
_serviceClient.getOptions().setProperty(Constants.Configuration.ENABLE_SWA,
Constants.VALUE_TRUE);
if (attachment != null) {
FileDataSource communityFile = new FileDataSource(attachment);
DataHandler communityDH = new DataHandler(communityFile);
_messageContext.addAttachment(communityDH);
}
I am looking at the request in TCPMon and I see an issue. If the attachment is
a jpg file, the "Content-Type" is automatically set to "image/jpeg". If the
attachment is a gif file, the "Content-Type" is automatically set to
"image/gif". However, if the attachment is a bmp file, the "Content-Type" is
"application/octet-stream". I believe it should be set to "image/bmp", just
like the other image file-types.
To work around this, I'm going to have to modify the generated stubs to set the
"Content-Type" manually.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]