cancel
Showing results for 
Search instead for 
Did you mean: 

Java CAP application to upload a parquet file

Jag03
Employee
Employee
0 Kudos
96

Hi Team,
I am new to CAP. I am building a java CAP application with spring boot and ODATA 4.
My requirement is to provide an api to upload a parquet file. The issue is whenever I am making the API call its returning me below error - 

{
"error": {
"code": "406",
"message": "The content type 'multipart/form-data;boundary=--------------------------939382535059353686856461' is not supported."
}
}
 
Here's my CDS file 
namespace test;

entity Upload {
file : LargeBinary @Core.MediaType: 'multipart/form-data';
}

 an there is Handler which implements EventHandler.
In regular spring boot app if I accept Multipart file using @RequestParam, it works fine.
Could you please help me to solve this issue?

Thanks

Accepted Solutions (0)

Answers (0)