Skip to Content

Uploading Multiple Image Files to SAP GW, Downloading Multiple Image Files from SAP GW

Hi Expert,

I'm following below blog and able to post and get the image file.

Uploading Files to SAP GW, Downloading Files from SAP GW – New Techniques

However, I need to store more than 1 photo for the user. So I've added a running number field in ZSA_PHOTO tables as a new key to differentiate different photo that have been uploaded. But when i tried to post I was getting error Invalid Key predicate.

POST method: your_service/UserSet(Email=‘usermail’, RunningId='00001')/Photo

How could I achieve this?

Regards,

-Ben-

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 27 at 06:23 PM

    Have you adjusted the keys in your service, now UserSet should have two keys unlike the blog you follwed. Also same keys will cascade down to Photo entity as well. It is also advised to have a thord key in Photo Entity to preserve its distinctiveness and honor the cardinality of 1 user to N photos.

    Add comment
    10|10000 characters needed characters exceeded