Skip to Content
0

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

Jan 24 at 08:25 AM

56

avatar image

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-

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Ankit Maskara
Jan 27 at 06:23 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded