Attachments (e.g. images) get corrupted when uploaded through application endpoint in SMP3.
When connecting directly to gateway backend without internal rewrite, attachment works without issues.
Publishing is done via /IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_STREAM method and tagged as media resource in the service.
https://<host>:8083/gateway/odata/<name>/<SERVICE>;v=1/AttachmentSet(AttachmentID='S557512DA4F705010E10080000A2A0126')/$value - WORKS OK
http://<host>:8080/<com.app.name>/AttachmentSet(AttachmentID='S557512DA4F705010E10080000A2A0126')/$value - DOESN'T WORK
- SAP Mobile Platform 3 SP08 PL01
- Integration Gateway
- SAP Gateway
odata, attachment, endpoint , KBA , rewrite , corrupt , MOB-ONP , SAP Mobile Platform on Premise , Problem
About this pageThis is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).
Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.