I just upgraded my mongo-db-java-driver and now the handy function GridFSBucket.uploadFromStream
has gone. Therefore we now got a
GridFSUploadPublisher<ObjectId> uploadFromPublisher(String filename, Publisher<ByteBuffer> source);
Any ideas how to convert my InputStream into an Publisher<ByteBuffer>
? Is there any utilfunction in the java driver or Reactor?