Skip to main content

In postman,I am able to send a binary file choosing the binary radio button to a REST service using the POST method.

 

I am trying to send the binary file from K2 to the same REST service. But in Swagger 2.0, I can consume a multipart/form and choose a type as file in the parameters. But I cannot choose the file type to be binary.

 

Can you suggest any way I can send a binary file from K2?

 

Thanks and Regards
Sindhu Kodikal

This is a tough one. I have never used binary with K2, so I'm not sure if its possible.


 


I did find another community post that has a solution for using binary data type with K2, but I have not tested it personally. You can find the post at https://community.k2.com/t5/K2-Five/How-to-handle-Binary-Data-Type/td-p/110027.


 


If you check the Swagger documentations, they mentioned how to use the binary data type:


https://swagger.io/docs/specification/data-models/data-types/


https://swagger.io/docs/specification/describing-request-body/file-upload/


 


 


Reply