cancel
Showing results for 
Search instead for 
Did you mean: 

Format Conversion in Uploading Attachment

GowthamRaja
Participant
0 Kudos
195

Hi Experts,

Backend odata is done when we tested by uploading attachment in gateway client its working fine that it receives the file in xstring format and they are converting to binary.

From ui5 i am uploading attachment, i am reading the file using readAsDataUrl, i am getting the base64 content and then i am using ,

btoa(encodeURI(base64))

but in backend they are not getting in xstring format.

How do i send the file in xstring format? or let me know in which format i need to send and in backend how should they handle.

Please need your inputs

Accepted Solutions (0)

Answers (1)

Answers (1)

GowthamRaja
Participant
0 Kudos

I have removed my conversion and sending the raw data to backend which received in xstring format but the xstring is not properly converted when we send from UI but when we test from gateway client its proper.

So i have changed my UI logic that not to call externaly using oModel.create, instead when attaching the file the framework itself sends call to backend with proper conversion.