About 1,580,000 results
Open links in new tab
  1. Upload and Retrieve Image on MongoDB using Mongoose

    Jan 9, 2025 · To upload an image and retrieve an image by MongoDB using Mongoose, follow each of the steps below one by one. Step 1: Create the file `.env` that will contain environment-specific settings. Step 2: Create our server file `app.js`. Add the following code to it:

  2. Data Modelling in MongoDB - GeeksforGeeks

    Feb 25, 2025 · In this article, we explored the best practices for designing a highly effective and scalable data model in MongoDB. We also distinguished between embedded data model and normalized data model to ensure that we choose the appropriate one for our application.

  3. How to upload and store images in mongoDB database - DEV …

    May 18, 2021 · DB, options: {useNewUrlParser: true, useUnifiedTopology: true}, file: (req, file) => {const match = [" image/png ", " image/jpeg "]; if (match. indexOf (file. mimetype) ===-1) {const filename = ` ${Date. now ()}-any-name-${file. originalname} `; return filename;} return {bucketName: " photos ", filename: ` ${Date. now ()}-any-name-${file ...

  4. Data Modeling - Database Manual v8.0 - MongoDB Docs

    Learn how to structure documents and define your schema in MongoDB University's Data Modeling course. For more information on data modeling with MongoDB, download the MongoDB Application Modernization Guide. The download includes the following resources: Presentation on the methodology of data modeling with MongoDB

  5. Store images in a MongoDB database - Stack Overflow

    Jan 25, 2011 · You can use the bin data type if you are using any scripting language to store files/images in MongoDB. Bin data is developed to store small size of files. Refer to your scripting language driver.

  6. What data type should I use to store an image with MongoDB?

    Jul 2, 2017 · There is a MongoDB BSON Type and Schema Type. The short answer is store as "Binary", for which in a mongoose schema you can use Buffer to do this. The longer form is to demonstrate a round trip of conversion starting with the original binary and back again.

  7. Data Model Examples and Patterns - Database Manual v8.0 - MongoDB

    See Model Tree Structures for additional examples of data models for tree structures. Model Specific Application Contexts Examples for models for specific application contexts.

  8. Data Modeling in MongoDB - Medium

    Aug 12, 2024 · When working with MongoDB, effective data modeling is crucial for building efficient and scalable applications. Unlike relational databases that rely on tables and a strict schema, MongoDB’s...

  9. Real-time Image Recognition with MongoDB and TensorFlow

    To demonstrate the integration of MongoDB and TensorFlow for real-time image recognition, let’s build a simple system that continuously captures images from a webcam, stores them in MongoDB, and uses a TensorFlow model to recognize objects within the images in real-time.

  10. Data Modeling Examples in MongoDB - Syskool

    5 days ago · Data modeling in MongoDB is essential for efficient data storage, retrieval, and management. The goal is to structure the database in a way that minimizes performance bottlenecks, data duplication, and operational complexity. Below, we will explore three different types of applications—Blog, E-Commerce, and Chat App—and look at how to model data for each in MongoDB, […]

  11. Some results have been removed
Refresh