Does it make sense to create a RESTful service to which I can send the binary?

As the question says - I want to send a binary file to a web service. Does it make sense to think about it in REST style? Does the "POST" binary data make sense and how do you configure the receiving web service?

I work in grails, and I am trying to configure a service that will allow one web service to transfer a file to it, and then transfer the file after some processing.

+3
source share
1 answer

Yes, this is a perfectly valid scenario. Just set the request content type to application/octet-stream, and the server can read the byte stream and do whatever it wants with it.

+2

Source: https://habr.com/ru/post/1768118/


All Articles