Package com.mongodb.gridfs

Examples of com.mongodb.gridfs.GridFS.find()


      file.setId("sample.txt");

      file.save();

      List<GridFSDBFile> files = gridFS.find((DBObject) JSON
          .parse("{ _id : 'sample.txt' }"));

      assertNotNull(files);
      assertEquals(1, files.size());
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.