cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a REST "PUT" call to a dynamic url and pass Binary file content in body in SAP MDK

geetbijlani
Participant
0 Kudos

Dear All,

I am working on MDK app in which I need to make a REST "PUT" call to a dynamic url generated in previous rest api calls and pass the Binary file content in body. I am not really sure how to approach this as I have a file path where the template word file is stored.

The dynamic url is a pre-signed url from Adobe Document Services where this file from my machine needs to be uploaded.

 

Best Regards,

Geet

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos
What MDK version and platform are you working with?
geetbijlani
Participant
0 Kudos
Hi Bill, I am developing this on BAS ->MDK 23.4+ (For use with MDK 23.4 or later clients)->for iOS platform

Accepted Solutions (0)

Answers (1)

Answers (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

First you will need the root of the REST service defined as a destination in Mobile Services with appropriate authentication.  Then you can use clietnAPI sendRequest method to create your PUT request specifying the URL as the path starting with the destination name and subpath as needed.