Hello everyone.i have a guestion .where should i keep my project’s images in my aplication? Is it good to keep then database ?or i should keep them in the project folder
Loading
Hello everyone.i have a guestion .where should i keep my project’s images in my aplication? Is it good to keep then database ?or i should keep them in the project folder
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Chris LovePosted Sep 9, 2022, 5:30 PM
Instead keep a path reference to your images. This could be a key, file name + path, etc. Something so your code will know where the image is.
If you are doing a web application the folder path is more a personal preference. I like dropping images in the /img folder. Partially b/c I started web dev back in 92, so short URLs were preferred. But I can and do use other folders for other image types. For example I keep all my PWA home screen icons in the /meta folder because I consider those images meta data of source. Not really part of the application itself, but part of the application identity.
Also, by keeping images as actual files you can cache and reuse them around your UX as needed instead of duplicating the data as part of an entity model/record.
PatelPosted Sep 9, 2022, 2:56 AM
Rajanikant HawaldarPosted Sep 9, 2022, 2:31 AM
Uttam KumarPosted Sep 9, 2022, 2:28 AM
Ram MPosted Sep 9, 2022, 2:15 AM
Rajanikant HawaldarPosted Sep 8, 2022, 4:41 PM
Sachin SinghPosted Sep 8, 2022, 4:27 PM