hey, I meet a problem when using spring-boot-starter-webflux, here is my code relevant
in controller,
@GetMapping("/download")
suspend fun downloadFile(@RequestBody request: DownloadRequest,
response: ServerHttpResponse) {
val databuffer = response.bufferFactory().allocateBuffer(bufferSize)
val outputStream = databuffer.asOutputStream()
// outputStream.write here
sambaUtils.downloadFile(request.path, request.filename, outputStream)
}
I have logged the writing bytes,