cancel
Showing results for 
Search instead for 
Did you mean: 

Decoding an expression in xsjs in SAP HANA

0 Kudos

Hi All,

I need to decode an expression which is sent from the client side from SAP UI5. I tried with btoa, decodeBase64, decodeHex but din't work in xsjs. Can someone please tell me how to decode the encoded expression in SAP HANA in xsjs.

Which in - built library is available to decode in xsjs?

Thanks in Advance,

Medini H K

Accepted Solutions (0)

Answers (1)

Answers (1)

SergioG_TX
Active Contributor
0 Kudos

do you know the encoding form? base64 should be used if you have a base64 string, hex obviously is if hex is sent.... so those default api functions should work.. since yours isnt working, that tells me there may be a different mechanism enconding the payload... do you have some sample code how you are encoding it on sapui5.. maybe analyzing the request headers we may be able to tell.

im sure you have looked at : https://help.sap.com/doc/3de842783af24336b6305a3c0223a369/2.0.01/en-US/$.util.codec.html