Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Multipart/form-data - Extract File Content (XSTRING value) in ODATA Create_Stream Method

somnath
Active Participant
0 Kudos
1,128

Hello,

I was looking for some pointers where I can extract the correct xstring value from the mediasource in ODATA DPC_EXT create_stream method. I need to send the file as form-data approach along with some json object.

What I observed the XSTRING content for my excel file is different compared to while uploading via simply binary approach.

So how to extract / convert into correct XTSRING value?

From POSTMAN., getting incorrect XSTRING value with below approach:

Working fine while trying with binary option.

Any hints will be great!

- Thanks.

1 REPLY 1
Read only

759268591
Discoverer
0 Kudos
847

Hello,somnath_sap2020_22 ,
I also encountered the same problem, I used body-binary in postman, the xstring obtained is correct, js side through form-data call, the data passed over cannot be parsed, can you solve it ?