I can continue the task. Example : http://mongodb.github.io/mongo-java-driver/3.4/driver/tutorials/gridfs/