I can\'t figure out how to stream a binary file from GridFS with spring-data-mongodb and its GridFSTemplate when I already have the right ObjectId.
GridFSTemplate
ObjectId
GridFSDBFile file = ... ByteArrayOutputStream baos = new ByteArrayOutputStream(); file.writeTo(baos); byte[] ba = baos.toByteArray()