Closed
Description
Marc-Christian Schulze opened SPR-16307 and commented
In order to stream content into a MultipartRequest it would be nice to have support for Publisher, e.g.:
Publisher<ByteBuffer> publisher = ...
WebClient
.create(someUrl)
.post()
.uri(URI.create("/whatever"))
.body(BodyInserters.fromMultipartData("file", publisher))
...
Issue Links:
- Multi-part upload of a byte[] with WebTestClient is Base64 encoded (?) and assigned a JSON content type [SPR-16350] #20897 Multi-part upload of a byte[] with WebTestClient is Base64 encoded (?) and assigned a JSON content type
- Support Custom Headers for Multipart Async Data [SPR-16376] #20922 Support Custom Headers for Multipart Async Data