Skip to main content
Nintex Community Menu Bar

Can we send a binary file using swagger 2.0 and also compatible with K2 Five?

  • May 6, 2020
  • 1 reply
  • 175 views
  • Translate

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

Did this topic help you find an answer to your question?

Forum|alt.badge.img+15

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/


 


 

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings