sql >> Database >  >> NoSQL >> MongoDB

Bestand opslaan en ophalen in MongoDB met Java &GridFs

GridFSDBFile gfsFileOut = (GridFSDBFile) gridfs.findOne(rawName);
    System.out.println(gfsFileOut.getInputStream());
    InputStream is = gfsFileOut.getInputStream();

    // Reading the excel file
    List<String> list = null;
    BufferedReader br = null;
    try {
        String sCurrentLine;
        br = new BufferedReader(new InputStreamReader(is, "UTF-8"));



  1. Databasebewaking met ClusterControl

  2. Gebruik van Hibernate OGM met cloud MongoDB Atlas M0 (Free Tier)

  3. MongoDB NodeJS-proces vol geheugen

  4. MongoDB configureren op Windows