cancel
Showing results for 
Search instead for 
Did you mean: 

Attachment using ODATA service Issue

arjavk
Explorer
0 Kudos

I have developed an ODATA service for uploading documents to BDS ( standard approach) for CRM application using update stream method ( PUT Method ).

Upload / Download service is working good when tested with GATEWAY Test tool in SAP ECC, TCODE : /IWFND/MAINT_SERVICE.

I am passing the file using Add file button in gateway tool, and i am able to view and download file correctly from CRM WEB GUI.

BUT when consuming the service from SAP HYBRIS, they can upload the file , but when opening / downloading the file it does not open correctly.

When debugged found that the encoded format recieved recieved when uploaded from Gateway tool ( add file button) and one recived from sap hybris ( front end application)

is totaly different, need urgent help to resolve the issue.

any help will be appreciated

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member185414
Active Contributor
0 Kudos

Are you correctly setting the content disposition header which confirms to browser the file name and format.

former_member484715
Contributor
0 Kudos

Hi Arjav Gandhi,

Debug the DPC_EXT class method which you redefined for uploading the documents, there is some change in format happening while uploading the data. I too faced the same problem some time ago for a different requirement. My program was working after I started storing the type in another field in my OData. You, could try the same.

Regards,

Arjun Biswas