I want to upload file to rest api using Webflux web client. the API which accepts the file has content type as APPLICATION_OCTET_STREAM how i can do this using spring WebClient?
how can i convert below curl to WebClient request ?
curl -i -X POST --header "Content-Type:application/octet-stream" --header --data-binary @myfile.pdf https://some-host/some-url
Note - I am not expecting very large file