how to use spring webflux for file streaming

Viewed 3099

I want to stream a file in a reactive way using spring webflux.
How my endpoint should look like more specific what is the type of the object ?

@GetMapping("/file")
Flux<???> file() {
    //Read file content into this ??? thing . 
}
1 Answers
Related