I am somewhat of a new developer to using Java and I have been enjoying the 8.5.1 Designer Client. Good Job IBM.
I am hoping someone can lend some assistance. I am leveraging Java to create a SOAP message from a Lotus Notes application to Oracle database via web services. It has been working great, however I have run into a problem. When attaching a file (pdf), the contentType of the attachment is not getting set to “application/pdf”. It is being set to “application/octet-stream”. This is causing issues with application using the Oracle table. When setting the object, I attempted for force the contentType. (See example below)
…
AttachmentPart attachPart = message.createAttachmentPart(sourceFile, “application/pdf”);
…
I then get the following error:
SAAJ0540: Error during saving a multipart message
When searching the error I found out the activation.jar might be old and the mimetypes.default file does not have pdf or other newer file types.
If I find the newer activation.jar can I just replace the jar file on the Domino server? We running Domino servers 8.5 and 8.5.1 (in the middle of upgrading). Do I need to replace the activation.jar or is there another way to set this ContentType.
Has anyone run into the problem before even in v6 or v7?
Thank you in advance for your thoughts and input.