2

Suppose we have several Publishers, each streaming contents of a separate file.

How to combine them into a single Publisher, streaming a ZIP archive containing all those files.

For simplicity, let's use two basic files having names "FileA.txt", "FileB.txt".

Flux<DataBuffer> fileA = getFirstFileContents();
Flux<DataBuffer> fileB = getSecondFileContents();

Flux<DataBuffer> zippedFiles = zipMyFiles(fileA, fileB);

What is the conventional (reactive) way to implement zipMyFiles function?

diziaq
  • 6,881
  • 16
  • 54
  • 96

0 Answers0