Skip to Content
author's profile photo Former Member
Former Member

Binary parameters to OData calls from within SAPUI5

I am implementing a Function Import call from within a SAPUI5 project and am trying to send a compressed and encoded string (i.e. a binary file) as part of the parameters to this function import:

oDataModel.callFunction("/myFunctionImport", {

method: "POST",

urlParameters: {

SubmissionID: 1,

JSONzip: sBase64Data


success: function (oData, oResponse) {

// ...


error: function (oError) {

// ... }


where "sBase64Data" is the compressed and encoded JSON string. The gateway is correctly set up so that the parameter types to the Function Import as set as an Int32 and a binary file, respectively.

I keep getting a "Malformed URI literal syntax" error when I run this code. Any ideas of how I can directly send a binary call through to a function import?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 26, 2017 at 02:17 PM

    You may not need the forward slash in "/myFunctionImport". You can use the browser dev tools to see the call being made to make sure it is formed correct.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 04 at 05:42 AM

    I am also facing the same issue what is the solution for that?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.