Watch keynotes and sessions from, our virtual developer conference.

Java Reactive Streams GridFS to InputStream

I’m migrating from Java Async Driver do Reactive Streams Driver, but when working with GridFS API i’ve found some issues to interop with my code like the async driver.

When I read a file from GridFS it provides me a Publisher, but in some parts of my code, what I need is a InputStream (yes, i know that it’s blocking, but in some legacy codes this is necessary) and when working with Reactive Streams Driver I don’t see any way to do that conversion.

In previous driver there is some utility methods to do this kind of conversion, but in this new driver I don’t see this utilities