Package com.mongodb.gridfs

Examples of com.mongodb.gridfs.GridFSDBFile.writeTo()


  @Override
  public void get(String resId, OutputStream os) throws IOException {
    GridFSDBFile dbFile =  gridFsOperations.findOne(
        new Query(GridFsCriteria.where("id").is(resId)));
    if(dbFile!=null){
      dbFile.writeTo(os);
    }
  }
}
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.