Store content of HTTP response in a document

0
Hi there, I have build a SAPOdata service call (Get Entry) to receive an attachment stored on a SAP SalesOrder. The Get Entry activity returns an error: Type: com.mendix.thirdparty.org.json.JSONException Message: A JSONObject text must begin with '{' at 1 [character 2 line 1] StackTrace: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.thirdparty.org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1] at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:156)   It looks like no attachment is retrieved from SAP for object 0000181953 but when getting the Latest HTTPResponse it contains info that the attachment is successfully downloaded and the content part contains the binary. I implemented a REST GET service but I ran in HTTP authentication errors (a quest for later).  Although I know I don't solve the root cause, how can I save the HTTResponse content string/binary to a file object?   Thanks, Zef
asked
1 answers
1

Have a look at the suggestions in this post https://forum.mendix.com/link/questions/12232

answered