Binary parameters to OData calls from within SAPUI5 -


i implementing function import call within sapui5 project , trying send compressed , encoded string (i.e. binary data) part of parameters function import:

odatamodel.callfunction("/myfunctionimport", {   method: "post",   urlparameters: {     submissionid: 1,     jsonzip: sbase64data },  success: function (odata, oresponse) {    // ... },  error: function (oerror) {    // ... } }); 

where "sbase64data" compressed , encoded json string. gateway correctly set parameter types function import set edm.int32 , edm.binary, respectively.

i keep getting "malformed uri literal syntax" error when run code. ideas of how can directly send binary parameter through function import call?

i using odata version 2.0.

i don't think base64 url safe, because allows +, = , /. i'm not sure + , = / @ least mess url because it's separator.

try running base64 encoded string through standard function encodeuricomponent. translate / %2f, + %2b , = %3d.


Comments

Popular posts from this blog

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

javascript - Understanding ExtJS Framework Syntax -