'How to retrieve image from MongoDB in NextJS application?
If I uploaded an image to my MongoDB Atlas database through Strapi and it is saved as an ObjectId:
How would I go about retrieving this information and displaying it in my NextJS app?
I have read this thread on how images are saved and seeing as how my images are listed to be under 16MB, I assume my images are stored as BSON, but I am not quite sure how to access that kind of data from a website. Additionally, how would I be able to access the width and height of the image in order to pass that data as parameters for the Image tag?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

