title: not streaming response in Spring WebFlux Flux<DataBuffer>
body: <pre><code>
      @GetMapping(value = &quot;/download&quot;)
      public Flux&lt;DataBuffer&gt; flux(ServerHttpResponse response) throws IOException {
          final Stream&lt;Integer&gt; stream = Stream.iterate(1, i -&gt; i + 1).limit(1000);
  
          String fileName = String.format(&quot;%s.csv&quot;, RandomStringUtils.randomAlphabetic(10));
          response.getHeaders().set(HttpHeaders.CONTENT_DISPOSITION, &quot;attachment; filename=&quot; + fileName);
          response.getHeaders().setContentType(MediaType.APPLICATION_OCTET_STREAM);
  
          final Flux&lt;DataBuffer&gt; next = Flux.&lt;DataBuffer&gt;create(emitter -&gt; {
                      stream
                              .map(i -&gt; String.format(&quot;%d&quot;, i).getBytes(StandardCharsets.UTF_8))
                              .forEach(bytes -&gt; {
                                  final DefaultDataBuffer dataBuffer = new DefaultDataBufferFactory().allocateBuffer();
                                  final OutputStream outputStream = dataBuffer.asOutputStream();
                                  try {
                                      outputStream.write(Byte.decode(&quot;DD&quot;));
                                      outputStream.flush();
                                      emitter.next(dataBuffer);
                                  } catch (IOException  e) {
                                      e.printStackTrace();
                                  }
                              });
                      emitter.complete();
                  }
          );
  
          return next;
      }
  </code></pre>
  <p>When <code>emiiter.next(dataBuffer)</code> , I cannot get a response from webflux server.</p>
  <p>when <code>emitter.complete()</code>, I get a total reponse. I want to get streaming in real time, how can I do it?</p>