Answer Posted / Garima Agrawal
To store images in a MongoDB database, you typically store the image data as base64-encoded strings within a document. However, it's not recommended for large images due to performance and storage considerations. Instead, you can store the image file path or URL and use GridFS, an extension of MongoDB that allows storing large files more efficiently.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers