Giter Club home page Giter Club logo

Comments (2)

denolfe avatar denolfe commented on May 27, 2024

Storing images in MongoDB is not recommended by Mongo. I would say this is something that we are unlikely to address, especially since Payload has dedicated upload functionality that can be leveraged.

from payload.

evoreign avatar evoreign commented on May 27, 2024

Storing images in MongoDB is not recommended by Mongo. I would say this is something that we are unlikely to address, especially since Payload has dedicated upload functionality that can be leveraged.

I am currently working on a project involving an image similarity search engine. In this project, each image undergoes processing through the SIFT algorithm to obtain its descriptor, represented as an array. Subsequently, the descriptor is converted into a base64 string. The reason behind this conversion is to streamline the storage process in MongoDB, as directly storing the descriptor without conversion results in significantly increased storage requirements. Essentially, this descriptor serves as a compact representation of the image. The actual images are stored in a Cloudinary Content Delivery Network (CDN), while MongoDB stores only the corresponding Cloudinary URL along with the converted string that represents the image. The image search algorithm operates by taking an image descriptor and seeking matches within the database's embeddings. To clarify, the images themselves are hosted on the CDN rather than in MongoDB; MongoDB solely manages the storage of the image embeddings, which are lengthy strings. Please reconsider this issue, as it does not have any connection to image uploading. The problem likely occurs when the CMS tries to display a very, very long string.

from payload.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.