phax / phase4

phase4 - AS4 client and server for integration into existing systems. Specific support for Peppol and CEF eDelivery built-in.
Apache License 2.0
147 stars 48 forks source link

Problem with image/jpeg attachments #257

Closed ruszkowsk1 closed 1 month ago

ruszkowsk1 commented 1 month ago

Hello,

We are having issue with attachments of image/jpeg type. After receiving Ebms3PayloadInfo with attachments of Ebms3PartInfo type, method getUncompressedMimeType() returns that file is of application/octet-stream type, while our client is sending image/jpeg.

Are there any known/fixed issues with mentioned content recognition?

Ps1. We are using phase4 lib version 1.3.8 atm. Ps2. Our client is using domibus for sending messages and I found information in domibus docs that image/jpeg is on their compression black list, so I guess it might be relevant.

phax commented 1 month ago

Okay, version 1.3.8 is really old. Try 1.4.5 at least. The uncompressed MIME type comes from the part property MimeType. Can you add the relevant parts of the UserMessage in here please?

ruszkowsk1 commented 1 month ago

Ok, problem solved, client removed image/jpeg type from compression black list in Domibus and it works fine now.

phax commented 1 month ago

Ah... I think that the API description was not perfect. getUncompressedMimeType is only set if something was decompressed. Otherwise getMimeType should be used. I clarified that in the latest version. Thanks for pointing that out