Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

multipart/form-data from xsjs to java

$
0
0

Hi ,

 

I'm trying to send a "multipart/form-data" of POST method from xsjs and in turn calls Java method .

 

xsjs

 

  var request = new $.web.WebRequest($.net.http.POST,"/entity");

  request.headers.set("Content-Type","multipart/form-data");

  request.setBody(contents);

 

But in java when I do ,

 

  Collection <Part> Parts = request.getParts();

 

it returns null  , whereas when I do :

 

InputStream is =request.getInputStream();

 

it returns proper value . I want my data to be in Parts. What should I do ?


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>